diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-07-14 06:19:13 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-07-14 06:19:13 -0400 |
commit | 361833efac4d277d209008e1e0658e597bc1bdef (patch) | |
tree | ef3b3f3bbe274f1e59cc1521566a85584777ace7 /include/linux/sched.h | |
parent | 54ef76f37bcccf8c16fbaaed13c3c40825195958 (diff) | |
parent | c300ba252829e9325e08f0af60687add94445b25 (diff) |
Merge branch 'sched/clock' into sched/devel
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 835b6c6fcc56..f6cd60f2de63 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1558,13 +1558,28 @@ static inline void sched_clock_idle_sleep_event(void) | |||
1558 | static inline void sched_clock_idle_wakeup_event(u64 delta_ns) | 1558 | static inline void sched_clock_idle_wakeup_event(u64 delta_ns) |
1559 | { | 1559 | { |
1560 | } | 1560 | } |
1561 | #else | 1561 | |
1562 | #ifdef CONFIG_NO_HZ | ||
1563 | static inline void sched_clock_tick_stop(int cpu) | ||
1564 | { | ||
1565 | } | ||
1566 | |||
1567 | static inline void sched_clock_tick_start(int cpu) | ||
1568 | { | ||
1569 | } | ||
1570 | #endif | ||
1571 | |||
1572 | #else /* CONFIG_HAVE_UNSTABLE_SCHED_CLOCK */ | ||
1562 | extern void sched_clock_init(void); | 1573 | extern void sched_clock_init(void); |
1563 | extern u64 sched_clock_cpu(int cpu); | 1574 | extern u64 sched_clock_cpu(int cpu); |
1564 | extern void sched_clock_tick(void); | 1575 | extern void sched_clock_tick(void); |
1565 | extern void sched_clock_idle_sleep_event(void); | 1576 | extern void sched_clock_idle_sleep_event(void); |
1566 | extern void sched_clock_idle_wakeup_event(u64 delta_ns); | 1577 | extern void sched_clock_idle_wakeup_event(u64 delta_ns); |
1578 | #ifdef CONFIG_NO_HZ | ||
1579 | extern void sched_clock_tick_stop(int cpu); | ||
1580 | extern void sched_clock_tick_start(int cpu); | ||
1567 | #endif | 1581 | #endif |
1582 | #endif /* CONFIG_HAVE_UNSTABLE_SCHED_CLOCK */ | ||
1568 | 1583 | ||
1569 | /* | 1584 | /* |
1570 | * For kernel-internal use: high-speed (but slightly incorrect) per-cpu | 1585 | * For kernel-internal use: high-speed (but slightly incorrect) per-cpu |