aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-07-14 06:19:13 -0400
committerIngo Molnar <mingo@elte.hu>2008-07-14 06:19:13 -0400
commit361833efac4d277d209008e1e0658e597bc1bdef (patch)
treeef3b3f3bbe274f1e59cc1521566a85584777ace7 /include/linux/sched.h
parent54ef76f37bcccf8c16fbaaed13c3c40825195958 (diff)
parentc300ba252829e9325e08f0af60687add94445b25 (diff)
Merge branch 'sched/clock' into sched/devel
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 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)
1558static inline void sched_clock_idle_wakeup_event(u64 delta_ns) 1558static inline void sched_clock_idle_wakeup_event(u64 delta_ns)
1559{ 1559{
1560} 1560}
1561#else 1561
1562#ifdef CONFIG_NO_HZ
1563static inline void sched_clock_tick_stop(int cpu)
1564{
1565}
1566
1567static inline void sched_clock_tick_start(int cpu)
1568{
1569}
1570#endif
1571
1572#else /* CONFIG_HAVE_UNSTABLE_SCHED_CLOCK */
1562extern void sched_clock_init(void); 1573extern void sched_clock_init(void);
1563extern u64 sched_clock_cpu(int cpu); 1574extern u64 sched_clock_cpu(int cpu);
1564extern void sched_clock_tick(void); 1575extern void sched_clock_tick(void);
1565extern void sched_clock_idle_sleep_event(void); 1576extern void sched_clock_idle_sleep_event(void);
1566extern void sched_clock_idle_wakeup_event(u64 delta_ns); 1577extern void sched_clock_idle_wakeup_event(u64 delta_ns);
1578#ifdef CONFIG_NO_HZ
1579extern void sched_clock_tick_stop(int cpu);
1580extern 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