]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
sched/headers: Prepare to move cputime functionality from <linux/sched.h> into <linux...
authorIngo Molnar <mingo@kernel.org>
Sun, 5 Feb 2017 10:48:36 +0000 (11:48 +0100)
committerIngo Molnar <mingo@kernel.org>
Thu, 2 Mar 2017 07:42:39 +0000 (08:42 +0100)
Introduce a trivial, mostly empty <linux/sched/cputime.h> header
to prepare for the moving of cputime functionality out of sched.h.

Update all code that relies on these facilities.

Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
25 files changed:
arch/alpha/kernel/osf_sys.c
arch/ia64/kernel/time.c
arch/powerpc/kernel/time.c
arch/s390/kernel/idle.c
arch/s390/kernel/vtime.c
arch/x86/kernel/apm_32.c
arch/x86/kvm/hyperv.c
drivers/isdn/mISDN/stack.c
drivers/s390/cio/cio.c
fs/binfmt_elf.c
fs/binfmt_elf_fdpic.c
fs/proc/array.c
fs/proc/stat.c
include/linux/sched/cputime.h [new file with mode: 0644]
kernel/acct.c
kernel/delayacct.c
kernel/exit.c
kernel/fork.c
kernel/sched/cputime.c
kernel/sched/sched.h
kernel/signal.c
kernel/sys.c
kernel/time/itimer.c
kernel/time/posix-cpu-timers.c
kernel/tsacct.c

index 73446baa632e1e6dc4c553d406690269a40b5b18..0b961093ca5cac69fe88598ed7ebc9c023a11a78 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/sched/signal.h>
 #include <linux/sched/mm.h>
 #include <linux/sched/task_stack.h>
+#include <linux/sched/cputime.h>
 #include <linux/kernel.h>
 #include <linux/mm.h>
 #include <linux/smp.h>
index 144f9db7a876652c229ce82c340e226289bb1ac8..aa7be020a9042b12b0c0ac8b05e380f0a5c0f8dc 100644 (file)
@@ -22,7 +22,7 @@
 #include <linux/timex.h>
 #include <linux/timekeeper_internal.h>
 #include <linux/platform_device.h>
-#include <linux/cputime.h>
+#include <linux/sched/cputime.h>
 
 #include <asm/machvec.h>
 #include <asm/delay.h>
index 37833c5dc27424698e909aa5c53a676b7e60d695..07b90725855e3b0f8791e95ff6d8ab8469d334d1 100644 (file)
@@ -58,7 +58,7 @@
 #include <linux/clk-provider.h>
 #include <linux/suspend.h>
 #include <linux/rtc.h>
-#include <linux/cputime.h>
+#include <linux/sched/cputime.h>
 #include <asm/trace.h>
 
 #include <asm/io.h>
index fb07a70820af42cc624f34d8de7f8b85ba959463..9340b2a07935dee71400f577a95ec1555f1482f0 100644 (file)
@@ -12,7 +12,7 @@
 #include <linux/notifier.h>
 #include <linux/init.h>
 #include <linux/cpu.h>
-#include <linux/cputime.h>
+#include <linux/sched/cputime.h>
 #include <asm/nmi.h>
 #include <asm/smp.h>
 #include "entry.h"
index 31bd96e811677546b8a668d9c6e1e85b8d980f7f..c14fc902991272be4d761b5f6fe506a64e12ace8 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #include <linux/kernel_stat.h>
-#include <linux/cputime.h>
+#include <linux/sched/cputime.h>
 #include <linux/export.h>
 #include <linux/kernel.h>
 #include <linux/timex.h>
index dc04b30cbd60525add6306c897313f74be717302..5a414545e8a39001a1679b40012adad2ac908d7b 100644 (file)
 #include <linux/init.h>
 #include <linux/time.h>
 #include <linux/sched/signal.h>
+#include <linux/sched/cputime.h>
 #include <linux/pm.h>
 #include <linux/capability.h>
 #include <linux/device.h>
index f701d4430727703ef478e9e07653efc1f2da9ccd..ebae57ac59024a6759ff9e2bb403de60f6bce759 100644 (file)
@@ -28,6 +28,8 @@
 
 #include <linux/kvm_host.h>
 #include <linux/highmem.h>
+#include <linux/sched/cputime.h>
+
 #include <asm/apicdef.h>
 #include <trace/events/kvm.h>
 
index 696f22fd5ab47825ea97e7bcb5f464fb94688a09..8b7faea2ddf88b718c252dc049e5d1b8b5e8357b 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/mISDNif.h>
 #include <linux/kthread.h>
 #include <linux/sched.h>
+#include <linux/sched/cputime.h>
 #include <linux/signal.h>
 
 #include "core.h"
index de6fccc1312485dd4b582c17ca93c0e8cac322f1..1b350665c82332618f331f29f69944449527c822 100644 (file)
@@ -29,7 +29,7 @@
 #include <asm/chpid.h>
 #include <asm/airq.h>
 #include <asm/isc.h>
-#include <linux/cputime.h>
+#include <linux/sched/cputime.h>
 #include <asm/fcx.h>
 #include <asm/nmi.h>
 #include <asm/crw.h>
index 92c00a13b28bd6c560a77ad0637acbb762661f73..5075fd5c62c86d93b30cb413f791d1810157b57c 100644 (file)
@@ -37,6 +37,7 @@
 #include <linux/sched.h>
 #include <linux/sched/coredump.h>
 #include <linux/sched/task_stack.h>
+#include <linux/sched/cputime.h>
 #include <linux/cred.h>
 #include <linux/dax.h>
 #include <linux/uaccess.h>
index 6103a8149ccd3346cf997fb10029b240be45b4f6..cf93a4fad01218575e3b0f4c9b2806a2b16111dc 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/sched.h>
 #include <linux/sched/coredump.h>
 #include <linux/sched/task_stack.h>
+#include <linux/sched/cputime.h>
 #include <linux/mm.h>
 #include <linux/mman.h>
 #include <linux/errno.h>
index f3169b58af381c41b51523159242466fe8044935..88c355574aa0afe3b1a62b371b048af8d948070e 100644 (file)
@@ -63,6 +63,7 @@
 #include <linux/sched/mm.h>
 #include <linux/sched/numa_balancing.h>
 #include <linux/sched/task.h>
+#include <linux/sched/cputime.h>
 #include <linux/proc_fs.h>
 #include <linux/ioport.h>
 #include <linux/uaccess.h>
index b95556e036bb546f0f7893bf6014220900fadf8d..bd4e55f4aa20b2b4b4ff2f89705749dc7673106e 100644 (file)
@@ -10,7 +10,7 @@
 #include <linux/slab.h>
 #include <linux/time.h>
 #include <linux/irqnr.h>
-#include <linux/cputime.h>
+#include <linux/sched/cputime.h>
 #include <linux/tick.h>
 
 #ifndef arch_irq_stat_cpu
diff --git a/include/linux/sched/cputime.h b/include/linux/sched/cputime.h
new file mode 100644 (file)
index 0000000..6ed4fe4
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef _LINUX_SCHED_CPUTIME_H
+#define _LINUX_SCHED_CPUTIME_H
+
+#include <linux/sched/signal.h>
+#include <linux/cputime.h>
+
+#endif /* _LINUX_SCHED_CPUTIME_H */
index ca9cb55b585599bcf78c78adc7117e70f23d6c33..5b1284370367aa71bdb5a56fd5c6855d7130fb4e 100644 (file)
@@ -56,6 +56,8 @@
 #include <linux/syscalls.h>
 #include <linux/mount.h>
 #include <linux/uaccess.h>
+#include <linux/sched/cputime.h>
+
 #include <asm/div64.h>
 #include <linux/blkdev.h> /* sector_div */
 #include <linux/pid_namespace.h>
index c94135fc2698447a67e183dafe458a17fb14a3b3..4a1c33416b6a2daa8f1a0ecd5641b613fc281983 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <linux/sched.h>
 #include <linux/sched/task.h>
+#include <linux/sched/cputime.h>
 #include <linux/slab.h>
 #include <linux/taskstats.h>
 #include <linux/time.h>
index 771c33fc995250c0a2baff9549ee51b3d7f3f25f..e126ebf2400c221adfb8a73508d883ec9accd63d 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/sched/stat.h>
 #include <linux/sched/task.h>
 #include <linux/sched/task_stack.h>
+#include <linux/sched/cputime.h>
 #include <linux/interrupt.h>
 #include <linux/module.h>
 #include <linux/capability.h>
index c87b6f03c710a7d3e50d810ce90f627e2959c527..916e78004b8fe4ebf73469bcf25b6a7fd010ccf2 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/sched/stat.h>
 #include <linux/sched/task.h>
 #include <linux/sched/task_stack.h>
+#include <linux/sched/cputime.h>
 #include <linux/rtmutex.h>
 #include <linux/init.h>
 #include <linux/unistd.h>
index 54031fa681e260ed48dd9d3a9321b34ababe4117..f3778e2b46c8dc00c90d9165f6ae9efbf1f16dc7 100644 (file)
@@ -4,7 +4,7 @@
 #include <linux/kernel_stat.h>
 #include <linux/static_key.h>
 #include <linux/context_tracking.h>
-#include <linux/cputime.h>
+#include <linux/sched/cputime.h>
 #include "sched.h"
 
 #ifdef CONFIG_IRQ_TIME_ACCOUNTING
index b1f1c8443837395d916655d8bd21cebd2c6deba6..76e3af3f39f4a9ef4e748030069dbfe7b3523b04 100644 (file)
@@ -17,6 +17,7 @@
 #include <linux/sched/hotplug.h>
 #include <linux/sched/task.h>
 #include <linux/sched/task_stack.h>
+#include <linux/sched/cputime.h>
 
 #include <linux/u64_stats_sync.h>
 #include <linux/kernel_stat.h>
index 2008aa999976a96b01cae180a1ab7129154fee31..7e59ebc2c25e669ef60f54d6e3ae6839c34d2f2a 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/sched/debug.h>
 #include <linux/sched/task.h>
 #include <linux/sched/task_stack.h>
+#include <linux/sched/cputime.h>
 #include <linux/fs.h>
 #include <linux/tty.h>
 #include <linux/binfmts.h>
index 7f1ecd2e41c11f3a5b6cd04df1d60f33a68850dc..7ff6d1b10cecac8e66583f3bc233fd6fcb445b5c 100644 (file)
@@ -55,6 +55,7 @@
 #include <linux/sched/mm.h>
 #include <linux/sched/coredump.h>
 #include <linux/sched/task.h>
+#include <linux/sched/cputime.h>
 #include <linux/rcupdate.h>
 #include <linux/uidgid.h>
 #include <linux/cred.h>
index f6b961c5e58cf1b762b21f500d6c2f837a837fd7..087d6a1279b833124d6359017687c4fff0cd88ca 100644 (file)
@@ -11,6 +11,7 @@
 #include <linux/syscalls.h>
 #include <linux/time.h>
 #include <linux/sched/signal.h>
+#include <linux/sched/cputime.h>
 #include <linux/posix-timers.h>
 #include <linux/hrtimer.h>
 #include <trace/events/timer.h>
index a2475a9f57d8faee0d37dac3e4ea7f5e3cd92a22..4513ad16a253f6d2b0ccf6a3aa178b1e058c5c52 100644 (file)
@@ -3,6 +3,7 @@
  */
 
 #include <linux/sched/signal.h>
+#include <linux/sched/cputime.h>
 #include <linux/posix-timers.h>
 #include <linux/errno.h>
 #include <linux/math64.h>
index d9a03b80b75d1d0749addb1503004f7f7092c883..370724b4539185c9cc9b6323feab36b414836903 100644 (file)
@@ -19,6 +19,7 @@
 #include <linux/kernel.h>
 #include <linux/sched/signal.h>
 #include <linux/sched/mm.h>
+#include <linux/sched/cputime.h>
 #include <linux/tsacct_kern.h>
 #include <linux/acct.h>
 #include <linux/jiffies.h>