diff options
| author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2004-07-06 09:18:17 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-07-06 09:18:17 -0700 |
| commit | 1ef8b8353abda57079ae248587c1abea11e0a114 (patch) | |
| tree | 779dcf5301fc1effbccce6e0177b2ad04bff92b7 /include | |
| parent | 6ac4831335550202d14df301778c13e6432e036b (diff) | |
[PATCH] s390: cpu-idle notifier
This patch introduces a notifier chain for cpu idle. There are two events
CPU_IDLE and CPU_NOT_IDLE that are called just before the cpu goes to sleep
and right after the cpu woke up again. The notifier is used to simplify the
no-hz-timer-in-idle feature and the virtual cpu timers. In addition the
virtual cpu timer functions have been moved to arch/s390/kernel/vtime.c, which
gives a nice separation between the timer functions related to real time and
the timer functions related to virtual cpu time.
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/asm-s390/processor.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/asm-s390/processor.h b/include/asm-s390/processor.h index 33154f85aed6..4c9d607021d7 100644 --- a/include/asm-s390/processor.h +++ b/include/asm-s390/processor.h @@ -319,6 +319,16 @@ static inline void disabled_wait(unsigned long code) #endif /* __s390x__ */ } +/* + * CPU idle notifier chain. + */ +#define CPU_IDLE 0 +#define CPU_NOT_IDLE 1 + +struct notifier_block; +int register_idle_notifier(struct notifier_block *nb); +int unregister_idle_notifier(struct notifier_block *nb); + #endif #endif /* __ASM_S390_PROCESSOR_H */ |
