diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2017-01-30 22:09:51 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2017-02-01 03:14:07 -0500 |
commit | b672592f022152155fde7db99aafbcf04a2c3ba5 (patch) | |
tree | 555f44740e7cf63aba9d68d537b136d00d3c35d4 | |
parent | 934ad473552a48d303a54279518aa19cf674567d (diff) |
sched/cputime: Remove generic asm headers
cputime_t is now only used by two architectures:
* powerpc (when CONFIG_VIRT_CPU_ACCOUNTING_NATIVE=y)
* s390
And since the core doesn't use it anymore, we don't need any arch support
from the others. So we can remove their stub implementations.
A final cleanup would be to provide an efficient pure arch
implementation of cputime_to_nsec() for s390 and powerpc and finally
remove include/linux/cputime.h .
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Rik van Riel <riel@redhat.com>
Cc: Stanislaw Gruszka <sgruszka@redhat.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Tony Luck <tony.luck@intel.com>
Cc: Wanpeng Li <wanpeng.li@hotmail.com>
Link: http://lkml.kernel.org/r/1485832191-26889-36-git-send-email-fweisbec@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
32 files changed, 4 insertions, 41 deletions
diff --git a/arch/alpha/include/asm/Kbuild b/arch/alpha/include/asm/Kbuild index bf8475ce85ee..baa152b9348e 100644 --- a/arch/alpha/include/asm/Kbuild +++ b/arch/alpha/include/asm/Kbuild | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | 2 | ||
3 | generic-y += clkdev.h | 3 | generic-y += clkdev.h |
4 | generic-y += cputime.h | ||
5 | generic-y += exec.h | 4 | generic-y += exec.h |
6 | generic-y += export.h | 5 | generic-y += export.h |
7 | generic-y += irq_work.h | 6 | generic-y += irq_work.h |
diff --git a/arch/arc/include/asm/Kbuild b/arch/arc/include/asm/Kbuild index c332604606dd..63a04013d05a 100644 --- a/arch/arc/include/asm/Kbuild +++ b/arch/arc/include/asm/Kbuild | |||
@@ -2,7 +2,6 @@ generic-y += auxvec.h | |||
2 | generic-y += bitsperlong.h | 2 | generic-y += bitsperlong.h |
3 | generic-y += bugs.h | 3 | generic-y += bugs.h |
4 | generic-y += clkdev.h | 4 | generic-y += clkdev.h |
5 | generic-y += cputime.h | ||
6 | generic-y += device.h | 5 | generic-y += device.h |
7 | generic-y += div64.h | 6 | generic-y += div64.h |
8 | generic-y += emergency-restart.h | 7 | generic-y += emergency-restart.h |
diff --git a/arch/arm/include/asm/Kbuild b/arch/arm/include/asm/Kbuild index efb21757d41f..b14e8c7d71bd 100644 --- a/arch/arm/include/asm/Kbuild +++ b/arch/arm/include/asm/Kbuild | |||
@@ -2,7 +2,6 @@ | |||
2 | 2 | ||
3 | generic-y += bitsperlong.h | 3 | generic-y += bitsperlong.h |
4 | generic-y += clkdev.h | 4 | generic-y += clkdev.h |
5 | generic-y += cputime.h | ||
6 | generic-y += current.h | 5 | generic-y += current.h |
7 | generic-y += early_ioremap.h | 6 | generic-y += early_ioremap.h |
8 | generic-y += emergency-restart.h | 7 | generic-y += emergency-restart.h |
diff --git a/arch/arm64/include/asm/Kbuild b/arch/arm64/include/asm/Kbuild index 8365a84c2640..a12f1afc95a3 100644 --- a/arch/arm64/include/asm/Kbuild +++ b/arch/arm64/include/asm/Kbuild | |||
@@ -1,6 +1,5 @@ | |||
1 | generic-y += bugs.h | 1 | generic-y += bugs.h |
2 | generic-y += clkdev.h | 2 | generic-y += clkdev.h |
3 | generic-y += cputime.h | ||
4 | generic-y += delay.h | 3 | generic-y += delay.h |
5 | generic-y += div64.h | 4 | generic-y += div64.h |
6 | generic-y += dma.h | 5 | generic-y += dma.h |
diff --git a/arch/avr32/include/asm/Kbuild b/arch/avr32/include/asm/Kbuild index 241b9b9729d8..3d7ef2c17a7c 100644 --- a/arch/avr32/include/asm/Kbuild +++ b/arch/avr32/include/asm/Kbuild | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | generic-y += clkdev.h | 2 | generic-y += clkdev.h |
3 | generic-y += cputime.h | ||
4 | generic-y += delay.h | 3 | generic-y += delay.h |
5 | generic-y += device.h | 4 | generic-y += device.h |
6 | generic-y += div64.h | 5 | generic-y += div64.h |
diff --git a/arch/blackfin/include/asm/Kbuild b/arch/blackfin/include/asm/Kbuild index 2fb67b59d188..d6fa60b158be 100644 --- a/arch/blackfin/include/asm/Kbuild +++ b/arch/blackfin/include/asm/Kbuild | |||
@@ -2,7 +2,6 @@ | |||
2 | generic-y += auxvec.h | 2 | generic-y += auxvec.h |
3 | generic-y += bitsperlong.h | 3 | generic-y += bitsperlong.h |
4 | generic-y += bugs.h | 4 | generic-y += bugs.h |
5 | generic-y += cputime.h | ||
6 | generic-y += current.h | 5 | generic-y += current.h |
7 | generic-y += device.h | 6 | generic-y += device.h |
8 | generic-y += div64.h | 7 | generic-y += div64.h |
diff --git a/arch/c6x/include/asm/Kbuild b/arch/c6x/include/asm/Kbuild index 64465e7e2245..4e9f57433f3a 100644 --- a/arch/c6x/include/asm/Kbuild +++ b/arch/c6x/include/asm/Kbuild | |||
@@ -5,7 +5,6 @@ generic-y += barrier.h | |||
5 | generic-y += bitsperlong.h | 5 | generic-y += bitsperlong.h |
6 | generic-y += bugs.h | 6 | generic-y += bugs.h |
7 | generic-y += clkdev.h | 7 | generic-y += clkdev.h |
8 | generic-y += cputime.h | ||
9 | generic-y += current.h | 8 | generic-y += current.h |
10 | generic-y += device.h | 9 | generic-y += device.h |
11 | generic-y += div64.h | 10 | generic-y += div64.h |
diff --git a/arch/cris/include/asm/Kbuild b/arch/cris/include/asm/Kbuild index 1778805f6380..9f19e19bff9d 100644 --- a/arch/cris/include/asm/Kbuild +++ b/arch/cris/include/asm/Kbuild | |||
@@ -4,7 +4,6 @@ generic-y += barrier.h | |||
4 | generic-y += bitsperlong.h | 4 | generic-y += bitsperlong.h |
5 | generic-y += clkdev.h | 5 | generic-y += clkdev.h |
6 | generic-y += cmpxchg.h | 6 | generic-y += cmpxchg.h |
7 | generic-y += cputime.h | ||
8 | generic-y += device.h | 7 | generic-y += device.h |
9 | generic-y += div64.h | 8 | generic-y += div64.h |
10 | generic-y += errno.h | 9 | generic-y += errno.h |
diff --git a/arch/frv/include/asm/Kbuild b/arch/frv/include/asm/Kbuild index 1fa084cf1a43..0f5b0d5d313c 100644 --- a/arch/frv/include/asm/Kbuild +++ b/arch/frv/include/asm/Kbuild | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | generic-y += clkdev.h | 2 | generic-y += clkdev.h |
3 | generic-y += cputime.h | ||
4 | generic-y += exec.h | 3 | generic-y += exec.h |
5 | generic-y += irq_work.h | 4 | generic-y += irq_work.h |
6 | generic-y += mcs_spinlock.h | 5 | generic-y += mcs_spinlock.h |
diff --git a/arch/h8300/include/asm/Kbuild b/arch/h8300/include/asm/Kbuild index 373cb23301e3..5efd0c87f3c0 100644 --- a/arch/h8300/include/asm/Kbuild +++ b/arch/h8300/include/asm/Kbuild | |||
@@ -5,7 +5,6 @@ generic-y += bugs.h | |||
5 | generic-y += cacheflush.h | 5 | generic-y += cacheflush.h |
6 | generic-y += checksum.h | 6 | generic-y += checksum.h |
7 | generic-y += clkdev.h | 7 | generic-y += clkdev.h |
8 | generic-y += cputime.h | ||
9 | generic-y += current.h | 8 | generic-y += current.h |
10 | generic-y += delay.h | 9 | generic-y += delay.h |
11 | generic-y += device.h | 10 | generic-y += device.h |
diff --git a/arch/hexagon/include/asm/Kbuild b/arch/hexagon/include/asm/Kbuild index db8ddabc6bd2..a43a7c90e4af 100644 --- a/arch/hexagon/include/asm/Kbuild +++ b/arch/hexagon/include/asm/Kbuild | |||
@@ -6,7 +6,6 @@ generic-y += barrier.h | |||
6 | generic-y += bug.h | 6 | generic-y += bug.h |
7 | generic-y += bugs.h | 7 | generic-y += bugs.h |
8 | generic-y += clkdev.h | 8 | generic-y += clkdev.h |
9 | generic-y += cputime.h | ||
10 | generic-y += current.h | 9 | generic-y += current.h |
11 | generic-y += device.h | 10 | generic-y += device.h |
12 | generic-y += div64.h | 11 | generic-y += div64.h |
diff --git a/arch/ia64/include/asm/cputime.h b/arch/ia64/include/asm/cputime.h index 44bcffc5681c..3d665c0627a8 100644 --- a/arch/ia64/include/asm/cputime.h +++ b/arch/ia64/include/asm/cputime.h | |||
@@ -18,9 +18,7 @@ | |||
18 | #ifndef __IA64_CPUTIME_H | 18 | #ifndef __IA64_CPUTIME_H |
19 | #define __IA64_CPUTIME_H | 19 | #define __IA64_CPUTIME_H |
20 | 20 | ||
21 | #ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE | 21 | #ifdef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE |
22 | # include <asm-generic/cputime.h> | ||
23 | #else | ||
24 | extern void arch_vtime_task_switch(struct task_struct *tsk); | 22 | extern void arch_vtime_task_switch(struct task_struct *tsk); |
25 | #endif /* CONFIG_VIRT_CPU_ACCOUNTING_NATIVE */ | 23 | #endif /* CONFIG_VIRT_CPU_ACCOUNTING_NATIVE */ |
26 | 24 | ||
diff --git a/arch/m32r/include/asm/Kbuild b/arch/m32r/include/asm/Kbuild index 860e440611c9..652100b64a71 100644 --- a/arch/m32r/include/asm/Kbuild +++ b/arch/m32r/include/asm/Kbuild | |||
@@ -1,6 +1,5 @@ | |||
1 | 1 | ||
2 | generic-y += clkdev.h | 2 | generic-y += clkdev.h |
3 | generic-y += cputime.h | ||
4 | generic-y += exec.h | 3 | generic-y += exec.h |
5 | generic-y += irq_work.h | 4 | generic-y += irq_work.h |
6 | generic-y += kvm_para.h | 5 | generic-y += kvm_para.h |
diff --git a/arch/m68k/include/asm/Kbuild b/arch/m68k/include/asm/Kbuild index 1f2e5d31cb24..6c76d6c24b3d 100644 --- a/arch/m68k/include/asm/Kbuild +++ b/arch/m68k/include/asm/Kbuild | |||
@@ -1,7 +1,6 @@ | |||
1 | generic-y += barrier.h | 1 | generic-y += barrier.h |
2 | generic-y += bitsperlong.h | 2 | generic-y += bitsperlong.h |
3 | generic-y += clkdev.h | 3 | generic-y += clkdev.h |
4 | generic-y += cputime.h | ||
5 | generic-y += device.h | 4 | generic-y += device.h |
6 | generic-y += emergency-restart.h | 5 | generic-y += emergency-restart.h |
7 | generic-y += errno.h | 6 | generic-y += errno.h |
diff --git a/arch/metag/include/asm/Kbuild b/arch/metag/include/asm/Kbuild index 167150c701d1..d3731f0db73b 100644 --- a/arch/metag/include/asm/Kbuild +++ b/arch/metag/include/asm/Kbuild | |||
@@ -2,7 +2,6 @@ generic-y += auxvec.h | |||
2 | generic-y += bitsperlong.h | 2 | generic-y += bitsperlong.h |
3 | generic-y += bugs.h | 3 | generic-y += bugs.h |
4 | generic-y += clkdev.h | 4 | generic-y += clkdev.h |
5 | generic-y += cputime.h | ||
6 | generic-y += current.h | 5 | generic-y += current.h |
7 | generic-y += device.h | 6 | generic-y += device.h |
8 | generic-y += dma.h | 7 | generic-y += dma.h |
diff --git a/arch/microblaze/include/asm/Kbuild b/arch/microblaze/include/asm/Kbuild index b0ae88c9fed9..6275eb051801 100644 --- a/arch/microblaze/include/asm/Kbuild +++ b/arch/microblaze/include/asm/Kbuild | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | generic-y += barrier.h | 2 | generic-y += barrier.h |
3 | generic-y += clkdev.h | 3 | generic-y += clkdev.h |
4 | generic-y += cputime.h | ||
5 | generic-y += device.h | 4 | generic-y += device.h |
6 | generic-y += exec.h | 5 | generic-y += exec.h |
7 | generic-y += irq_work.h | 6 | generic-y += irq_work.h |
diff --git a/arch/mips/include/asm/Kbuild b/arch/mips/include/asm/Kbuild index 3269b742a75e..994b1c4392be 100644 --- a/arch/mips/include/asm/Kbuild +++ b/arch/mips/include/asm/Kbuild | |||
@@ -1,7 +1,6 @@ | |||
1 | # MIPS headers | 1 | # MIPS headers |
2 | generic-(CONFIG_GENERIC_CSUM) += checksum.h | 2 | generic-(CONFIG_GENERIC_CSUM) += checksum.h |
3 | generic-y += clkdev.h | 3 | generic-y += clkdev.h |
4 | generic-y += cputime.h | ||
5 | generic-y += current.h | 4 | generic-y += current.h |
6 | generic-y += dma-contiguous.h | 5 | generic-y += dma-contiguous.h |
7 | generic-y += emergency-restart.h | 6 | generic-y += emergency-restart.h |
diff --git a/arch/mn10300/include/asm/Kbuild b/arch/mn10300/include/asm/Kbuild index 1c8dd0f5cd5d..97f64c723a0c 100644 --- a/arch/mn10300/include/asm/Kbuild +++ b/arch/mn10300/include/asm/Kbuild | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | generic-y += barrier.h | 2 | generic-y += barrier.h |
3 | generic-y += clkdev.h | 3 | generic-y += clkdev.h |
4 | generic-y += cputime.h | ||
5 | generic-y += exec.h | 4 | generic-y += exec.h |
6 | generic-y += irq_work.h | 5 | generic-y += irq_work.h |
7 | generic-y += mcs_spinlock.h | 6 | generic-y += mcs_spinlock.h |
diff --git a/arch/nios2/include/asm/Kbuild b/arch/nios2/include/asm/Kbuild index d63330e88379..35b0e883761a 100644 --- a/arch/nios2/include/asm/Kbuild +++ b/arch/nios2/include/asm/Kbuild | |||
@@ -6,7 +6,6 @@ generic-y += bitsperlong.h | |||
6 | generic-y += bug.h | 6 | generic-y += bug.h |
7 | generic-y += bugs.h | 7 | generic-y += bugs.h |
8 | generic-y += clkdev.h | 8 | generic-y += clkdev.h |
9 | generic-y += cputime.h | ||
10 | generic-y += current.h | 9 | generic-y += current.h |
11 | generic-y += device.h | 10 | generic-y += device.h |
12 | generic-y += div64.h | 11 | generic-y += div64.h |
diff --git a/arch/openrisc/include/asm/Kbuild b/arch/openrisc/include/asm/Kbuild index 2832f031fb11..ef8d1ccc3e45 100644 --- a/arch/openrisc/include/asm/Kbuild +++ b/arch/openrisc/include/asm/Kbuild | |||
@@ -12,7 +12,6 @@ generic-y += checksum.h | |||
12 | generic-y += clkdev.h | 12 | generic-y += clkdev.h |
13 | generic-y += cmpxchg-local.h | 13 | generic-y += cmpxchg-local.h |
14 | generic-y += cmpxchg.h | 14 | generic-y += cmpxchg.h |
15 | generic-y += cputime.h | ||
16 | generic-y += current.h | 15 | generic-y += current.h |
17 | generic-y += device.h | 16 | generic-y += device.h |
18 | generic-y += div64.h | 17 | generic-y += div64.h |
diff --git a/arch/parisc/include/asm/Kbuild b/arch/parisc/include/asm/Kbuild index 91f53c07f410..4e179d770d69 100644 --- a/arch/parisc/include/asm/Kbuild +++ b/arch/parisc/include/asm/Kbuild | |||
@@ -2,7 +2,6 @@ | |||
2 | generic-y += auxvec.h | 2 | generic-y += auxvec.h |
3 | generic-y += barrier.h | 3 | generic-y += barrier.h |
4 | generic-y += clkdev.h | 4 | generic-y += clkdev.h |
5 | generic-y += cputime.h | ||
6 | generic-y += device.h | 5 | generic-y += device.h |
7 | generic-y += div64.h | 6 | generic-y += div64.h |
8 | generic-y += emergency-restart.h | 7 | generic-y += emergency-restart.h |
diff --git a/arch/powerpc/include/asm/cputime.h b/arch/powerpc/include/asm/cputime.h index 6ec0ba6f1a61..99b541865d8d 100644 --- a/arch/powerpc/include/asm/cputime.h +++ b/arch/powerpc/include/asm/cputime.h | |||
@@ -16,9 +16,7 @@ | |||
16 | #ifndef __POWERPC_CPUTIME_H | 16 | #ifndef __POWERPC_CPUTIME_H |
17 | #define __POWERPC_CPUTIME_H | 17 | #define __POWERPC_CPUTIME_H |
18 | 18 | ||
19 | #ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE | 19 | #ifdef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE |
20 | #include <asm-generic/cputime.h> | ||
21 | #else | ||
22 | 20 | ||
23 | #include <linux/types.h> | 21 | #include <linux/types.h> |
24 | #include <linux/time.h> | 22 | #include <linux/time.h> |
diff --git a/arch/score/include/asm/Kbuild b/arch/score/include/asm/Kbuild index a05218ff3fe4..51970bb6c4fe 100644 --- a/arch/score/include/asm/Kbuild +++ b/arch/score/include/asm/Kbuild | |||
@@ -4,7 +4,6 @@ header-y += | |||
4 | 4 | ||
5 | generic-y += barrier.h | 5 | generic-y += barrier.h |
6 | generic-y += clkdev.h | 6 | generic-y += clkdev.h |
7 | generic-y += cputime.h | ||
8 | generic-y += irq_work.h | 7 | generic-y += irq_work.h |
9 | generic-y += mcs_spinlock.h | 8 | generic-y += mcs_spinlock.h |
10 | generic-y += mm-arch-hooks.h | 9 | generic-y += mm-arch-hooks.h |
diff --git a/arch/sh/include/asm/Kbuild b/arch/sh/include/asm/Kbuild index 751c3373a92c..cf2a75063b53 100644 --- a/arch/sh/include/asm/Kbuild +++ b/arch/sh/include/asm/Kbuild | |||
@@ -1,7 +1,6 @@ | |||
1 | 1 | ||
2 | generic-y += bitsperlong.h | 2 | generic-y += bitsperlong.h |
3 | generic-y += clkdev.h | 3 | generic-y += clkdev.h |
4 | generic-y += cputime.h | ||
5 | generic-y += current.h | 4 | generic-y += current.h |
6 | generic-y += delay.h | 5 | generic-y += delay.h |
7 | generic-y += div64.h | 6 | generic-y += div64.h |
diff --git a/arch/sparc/include/asm/Kbuild b/arch/sparc/include/asm/Kbuild index 0569bfac4afb..e9e837bc3158 100644 --- a/arch/sparc/include/asm/Kbuild +++ b/arch/sparc/include/asm/Kbuild | |||
@@ -2,7 +2,6 @@ | |||
2 | 2 | ||
3 | 3 | ||
4 | generic-y += clkdev.h | 4 | generic-y += clkdev.h |
5 | generic-y += cputime.h | ||
6 | generic-y += div64.h | 5 | generic-y += div64.h |
7 | generic-y += emergency-restart.h | 6 | generic-y += emergency-restart.h |
8 | generic-y += exec.h | 7 | generic-y += exec.h |
diff --git a/arch/tile/include/asm/Kbuild b/arch/tile/include/asm/Kbuild index 2d1f5638974c..51a339feceac 100644 --- a/arch/tile/include/asm/Kbuild +++ b/arch/tile/include/asm/Kbuild | |||
@@ -4,7 +4,6 @@ header-y += ../arch/ | |||
4 | generic-y += bug.h | 4 | generic-y += bug.h |
5 | generic-y += bugs.h | 5 | generic-y += bugs.h |
6 | generic-y += clkdev.h | 6 | generic-y += clkdev.h |
7 | generic-y += cputime.h | ||
8 | generic-y += div64.h | 7 | generic-y += div64.h |
9 | generic-y += emergency-restart.h | 8 | generic-y += emergency-restart.h |
10 | generic-y += errno.h | 9 | generic-y += errno.h |
diff --git a/arch/um/include/asm/Kbuild b/arch/um/include/asm/Kbuild index 052f7f6d0551..90c281cd7e1d 100644 --- a/arch/um/include/asm/Kbuild +++ b/arch/um/include/asm/Kbuild | |||
@@ -1,7 +1,6 @@ | |||
1 | generic-y += barrier.h | 1 | generic-y += barrier.h |
2 | generic-y += bug.h | 2 | generic-y += bug.h |
3 | generic-y += clkdev.h | 3 | generic-y += clkdev.h |
4 | generic-y += cputime.h | ||
5 | generic-y += current.h | 4 | generic-y += current.h |
6 | generic-y += delay.h | 5 | generic-y += delay.h |
7 | generic-y += device.h | 6 | generic-y += device.h |
diff --git a/arch/unicore32/include/asm/Kbuild b/arch/unicore32/include/asm/Kbuild index 256c45b3ae34..5d51ade89f4c 100644 --- a/arch/unicore32/include/asm/Kbuild +++ b/arch/unicore32/include/asm/Kbuild | |||
@@ -4,7 +4,6 @@ generic-y += auxvec.h | |||
4 | generic-y += bitsperlong.h | 4 | generic-y += bitsperlong.h |
5 | generic-y += bugs.h | 5 | generic-y += bugs.h |
6 | generic-y += clkdev.h | 6 | generic-y += clkdev.h |
7 | generic-y += cputime.h | ||
8 | generic-y += current.h | 7 | generic-y += current.h |
9 | generic-y += device.h | 8 | generic-y += device.h |
10 | generic-y += div64.h | 9 | generic-y += div64.h |
diff --git a/arch/x86/include/asm/Kbuild b/arch/x86/include/asm/Kbuild index 2b892e2313a9..5d6a53fd7521 100644 --- a/arch/x86/include/asm/Kbuild +++ b/arch/x86/include/asm/Kbuild | |||
@@ -7,7 +7,6 @@ generated-y += unistd_64_x32.h | |||
7 | generated-y += xen-hypercalls.h | 7 | generated-y += xen-hypercalls.h |
8 | 8 | ||
9 | generic-y += clkdev.h | 9 | generic-y += clkdev.h |
10 | generic-y += cputime.h | ||
11 | generic-y += dma-contiguous.h | 10 | generic-y += dma-contiguous.h |
12 | generic-y += early_ioremap.h | 11 | generic-y += early_ioremap.h |
13 | generic-y += mcs_spinlock.h | 12 | generic-y += mcs_spinlock.h |
diff --git a/arch/xtensa/include/asm/Kbuild b/arch/xtensa/include/asm/Kbuild index b7fbaa56b51a..9e9760b20be5 100644 --- a/arch/xtensa/include/asm/Kbuild +++ b/arch/xtensa/include/asm/Kbuild | |||
@@ -1,7 +1,6 @@ | |||
1 | generic-y += bitsperlong.h | 1 | generic-y += bitsperlong.h |
2 | generic-y += bug.h | 2 | generic-y += bug.h |
3 | generic-y += clkdev.h | 3 | generic-y += clkdev.h |
4 | generic-y += cputime.h | ||
5 | generic-y += div64.h | 4 | generic-y += div64.h |
6 | generic-y += dma-contiguous.h | 5 | generic-y += dma-contiguous.h |
7 | generic-y += emergency-restart.h | 6 | generic-y += emergency-restart.h |
diff --git a/include/asm-generic/cputime.h b/include/asm-generic/cputime.h deleted file mode 100644 index 358e54777b56..000000000000 --- a/include/asm-generic/cputime.h +++ /dev/null | |||
@@ -1,7 +0,0 @@ | |||
1 | #ifndef _ASM_GENERIC_CPUTIME_H | ||
2 | #define _ASM_GENERIC_CPUTIME_H | ||
3 | |||
4 | #include <linux/time.h> | ||
5 | #include <linux/jiffies.h> | ||
6 | |||
7 | #endif | ||
diff --git a/include/linux/cputime.h b/include/linux/cputime.h index a257d6690621..a691dc4ddc13 100644 --- a/include/linux/cputime.h +++ b/include/linux/cputime.h | |||
@@ -1,6 +1,7 @@ | |||
1 | #ifndef __LINUX_CPUTIME_H | 1 | #ifndef __LINUX_CPUTIME_H |
2 | #define __LINUX_CPUTIME_H | 2 | #define __LINUX_CPUTIME_H |
3 | 3 | ||
4 | #ifdef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE | ||
4 | #include <asm/cputime.h> | 5 | #include <asm/cputime.h> |
5 | 6 | ||
6 | #ifndef cputime_to_nsecs | 7 | #ifndef cputime_to_nsecs |
@@ -8,4 +9,5 @@ | |||
8 | (cputime_to_usecs(__ct) * NSEC_PER_USEC) | 9 | (cputime_to_usecs(__ct) * NSEC_PER_USEC) |
9 | #endif | 10 | #endif |
10 | 11 | ||
12 | #endif /* CONFIG_VIRT_CPU_ACCOUNTING_NATIVE */ | ||
11 | #endif /* __LINUX_CPUTIME_H */ | 13 | #endif /* __LINUX_CPUTIME_H */ |