diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2013-07-16 12:50:52 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2013-08-14 11:14:53 -0400 |
commit | a5725ac23bf4ff79656ac2c317c323e261327fb3 (patch) | |
tree | 279ff31bbb6cac44de3c1ef3f66d347da0fe5b36 /arch/s390 | |
parent | a703f9b72407d9a4e233f4f6aea1a14ab2b74415 (diff) |
vtime: Describe overriden functions in dedicated arch headers
If the arch overrides some generic vtime APIs, let it describe
these on a dedicated and standalone header. This way it becomes
convenient to include it in vtime generic headers without irrelevant
stuff in such a low level header.
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Li Zhong <zhong@linux.vnet.ibm.com>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Kevin Hilman <khilman@linaro.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/include/asm/cputime.h | 3 | ||||
-rw-r--r-- | arch/s390/include/asm/vtime.h | 7 | ||||
-rw-r--r-- | arch/s390/kernel/vtime.c | 1 |
3 files changed, 8 insertions, 3 deletions
diff --git a/arch/s390/include/asm/cputime.h b/arch/s390/include/asm/cputime.h index d2ff41370c0c..f65bd3634519 100644 --- a/arch/s390/include/asm/cputime.h +++ b/arch/s390/include/asm/cputime.h | |||
@@ -13,9 +13,6 @@ | |||
13 | #include <asm/div64.h> | 13 | #include <asm/div64.h> |
14 | 14 | ||
15 | 15 | ||
16 | #define __ARCH_HAS_VTIME_ACCOUNT | ||
17 | #define __ARCH_HAS_VTIME_TASK_SWITCH | ||
18 | |||
19 | /* We want to use full resolution of the CPU timer: 2**-12 micro-seconds. */ | 16 | /* We want to use full resolution of the CPU timer: 2**-12 micro-seconds. */ |
20 | 17 | ||
21 | typedef unsigned long long __nocast cputime_t; | 18 | typedef unsigned long long __nocast cputime_t; |
diff --git a/arch/s390/include/asm/vtime.h b/arch/s390/include/asm/vtime.h new file mode 100644 index 000000000000..af9896c53eb3 --- /dev/null +++ b/arch/s390/include/asm/vtime.h | |||
@@ -0,0 +1,7 @@ | |||
1 | #ifndef _S390_VTIME_H | ||
2 | #define _S390_VTIME_H | ||
3 | |||
4 | #define __ARCH_HAS_VTIME_ACCOUNT | ||
5 | #define __ARCH_HAS_VTIME_TASK_SWITCH | ||
6 | |||
7 | #endif /* _S390_VTIME_H */ | ||
diff --git a/arch/s390/kernel/vtime.c b/arch/s390/kernel/vtime.c index 9b9c1b78ec67..abcfab55f99b 100644 --- a/arch/s390/kernel/vtime.c +++ b/arch/s390/kernel/vtime.c | |||
@@ -19,6 +19,7 @@ | |||
19 | #include <asm/irq_regs.h> | 19 | #include <asm/irq_regs.h> |
20 | #include <asm/cputime.h> | 20 | #include <asm/cputime.h> |
21 | #include <asm/vtimer.h> | 21 | #include <asm/vtimer.h> |
22 | #include <asm/vtime.h> | ||
22 | #include <asm/irq.h> | 23 | #include <asm/irq.h> |
23 | #include "entry.h" | 24 | #include "entry.h" |
24 | 25 | ||