aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h17
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)
1573static inline void sched_clock_idle_wakeup_event(u64 delta_ns) 1573static inline void sched_clock_idle_wakeup_event(u64 delta_ns)
1574{ 1574{
1575} 1575}
1576#else 1576
1577#ifdef CONFIG_NO_HZ
1578static inline void sched_clock_tick_stop(int cpu)
1579{
1580}
1581
1582static inline void sched_clock_tick_start(int cpu)
1583{
1584}
1585#endif
1586
1587#else /* CONFIG_HAVE_UNSTABLE_SCHED_CLOCK */
1577extern void sched_clock_init(void); 1588extern void sched_clock_init(void);
1578extern u64 sched_clock_cpu(int cpu); 1589extern u64 sched_clock_cpu(int cpu);
1579extern void sched_clock_tick(void); 1590extern void sched_clock_tick(void);
1580extern void sched_clock_idle_sleep_event(void); 1591extern void sched_clock_idle_sleep_event(void);
1581extern void sched_clock_idle_wakeup_event(u64 delta_ns); 1592extern void sched_clock_idle_wakeup_event(u64 delta_ns);
1593#ifdef CONFIG_NO_HZ
1594extern void sched_clock_tick_stop(int cpu);
1595extern 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