aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-09-10 02:35:40 -0400
committerIngo Molnar <mingo@elte.hu>2008-09-10 02:35:40 -0400
commit429b022af41108f6942d72547592b1d30e9a51f0 (patch)
tree7d68355529718018cdad1241285816c6f64620b2 /include/linux/sched.h
parent0cd418ddb1ee88df7d16d5df06cb2da68eceb9e4 (diff)
parentadee14b2e1557d0a8559f29681732d05a89dfc35 (diff)
Merge commit 'v2.6.27-rc6' into core/rcu
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r--include/linux/sched.h36
1 files changed, 9 insertions, 27 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 5270d449ff9d..3d9120c5ad15 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -87,6 +87,7 @@ struct sched_param {
87#include <linux/task_io_accounting.h> 87#include <linux/task_io_accounting.h>
88#include <linux/kobject.h> 88#include <linux/kobject.h>
89#include <linux/latencytop.h> 89#include <linux/latencytop.h>
90#include <linux/cred.h>
90 91
91#include <asm/processor.h> 92#include <asm/processor.h>
92 93
@@ -1474,6 +1475,10 @@ static inline void put_task_struct(struct task_struct *t)
1474 __put_task_struct(t); 1475 __put_task_struct(t);
1475} 1476}
1476 1477
1478extern cputime_t task_utime(struct task_struct *p);
1479extern cputime_t task_stime(struct task_struct *p);
1480extern cputime_t task_gtime(struct task_struct *p);
1481
1477/* 1482/*
1478 * Per process flags 1483 * Per process flags
1479 */ 1484 */
@@ -1551,16 +1556,10 @@ static inline int set_cpus_allowed(struct task_struct *p, cpumask_t new_mask)
1551 1556
1552extern unsigned long long sched_clock(void); 1557extern unsigned long long sched_clock(void);
1553 1558
1554#ifndef CONFIG_HAVE_UNSTABLE_SCHED_CLOCK 1559extern void sched_clock_init(void);
1555static inline void sched_clock_init(void) 1560extern u64 sched_clock_cpu(int cpu);
1556{
1557}
1558
1559static inline u64 sched_clock_cpu(int cpu)
1560{
1561 return sched_clock();
1562}
1563 1561
1562#ifndef CONFIG_HAVE_UNSTABLE_SCHED_CLOCK
1564static inline void sched_clock_tick(void) 1563static inline void sched_clock_tick(void)
1565{ 1564{
1566} 1565}
@@ -1572,28 +1571,11 @@ static inline void sched_clock_idle_sleep_event(void)
1572static inline void sched_clock_idle_wakeup_event(u64 delta_ns) 1571static inline void sched_clock_idle_wakeup_event(u64 delta_ns)
1573{ 1572{
1574} 1573}
1575 1574#else
1576#ifdef CONFIG_NO_HZ
1577static inline void sched_clock_tick_stop(int cpu)
1578{
1579}
1580
1581static inline void sched_clock_tick_start(int cpu)
1582{
1583}
1584#endif
1585
1586#else /* CONFIG_HAVE_UNSTABLE_SCHED_CLOCK */
1587extern void sched_clock_init(void);
1588extern u64 sched_clock_cpu(int cpu);
1589extern void sched_clock_tick(void); 1575extern void sched_clock_tick(void);
1590extern void sched_clock_idle_sleep_event(void); 1576extern void sched_clock_idle_sleep_event(void);
1591extern void sched_clock_idle_wakeup_event(u64 delta_ns); 1577extern void sched_clock_idle_wakeup_event(u64 delta_ns);
1592#ifdef CONFIG_NO_HZ
1593extern void sched_clock_tick_stop(int cpu);
1594extern void sched_clock_tick_start(int cpu);
1595#endif 1578#endif
1596#endif /* CONFIG_HAVE_UNSTABLE_SCHED_CLOCK */
1597 1579
1598/* 1580/*
1599 * For kernel-internal use: high-speed (but slightly incorrect) per-cpu 1581 * For kernel-internal use: high-speed (but slightly incorrect) per-cpu