diff options
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 c5d3f847ca8d..33a8f42041fa 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1573,13 +1573,28 @@ static inline void sched_clock_idle_sleep_event(void) | |||
1573 | static inline void sched_clock_idle_wakeup_event(u64 delta_ns) | 1573 | static inline void sched_clock_idle_wakeup_event(u64 delta_ns) |
1574 | { | 1574 | { |
1575 | } | 1575 | } |
1576 | #else | 1576 | |
1577 | #ifdef CONFIG_NO_HZ | ||
1578 | static inline void sched_clock_tick_stop(int cpu) | ||
1579 | { | ||
1580 | } | ||
1581 | |||
1582 | static inline void sched_clock_tick_start(int cpu) | ||
1583 | { | ||
1584 | } | ||
1585 | #endif | ||
1586 | |||
1587 | #else /* CONFIG_HAVE_UNSTABLE_SCHED_CLOCK */ | ||
1577 | extern void sched_clock_init(void); | 1588 | extern void sched_clock_init(void); |
1578 | extern u64 sched_clock_cpu(int cpu); | 1589 | extern u64 sched_clock_cpu(int cpu); |
1579 | extern void sched_clock_tick(void); | 1590 | extern void sched_clock_tick(void); |
1580 | extern void sched_clock_idle_sleep_event(void); | 1591 | extern void sched_clock_idle_sleep_event(void); |
1581 | extern void sched_clock_idle_wakeup_event(u64 delta_ns); | 1592 | extern void sched_clock_idle_wakeup_event(u64 delta_ns); |
1593 | #ifdef CONFIG_NO_HZ | ||
1594 | extern void sched_clock_tick_stop(int cpu); | ||
1595 | extern void sched_clock_tick_start(int cpu); | ||
1582 | #endif | 1596 | #endif |
1597 | #endif /* CONFIG_HAVE_UNSTABLE_SCHED_CLOCK */ | ||
1583 | 1598 | ||
1584 | /* | 1599 | /* |
1585 | * For kernel-internal use: high-speed (but slightly incorrect) per-cpu | 1600 | * For kernel-internal use: high-speed (but slightly incorrect) per-cpu |