aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2007-10-15 11:00:02 -0400
committerIngo Molnar <mingo@elte.hu>2007-10-15 11:00:02 -0400
commit2bd8e6d422a4f44c0994f909317eba80b0fe08a1 (patch)
tree3548dd01c056e3f7c3c04fd85cc4726b95677c15 /include
parent38ad464d410dadceda1563f36bdb0be7fe4c8938 (diff)
sched: use constants if !CONFIG_SCHED_DEBUG
use constants if !CONFIG_SCHED_DEBUG. this speeds up the code and reduces code-size: text data bss dec hex filename 27464 3014 16 30494 771e sched.o.before 26929 3010 20 29959 7507 sched.o.after Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Mike Galbraith <efault@gmx.de> Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include')
-rw-r--r--include/linux/sched.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h
index 9761b165d563..befca3f9364a 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1402,15 +1402,18 @@ static inline void idle_task_exit(void) {}
1402 1402
1403extern void sched_idle_next(void); 1403extern void sched_idle_next(void);
1404 1404
1405#ifdef CONFIG_SCHED_DEBUG
1405extern unsigned int sysctl_sched_latency; 1406extern unsigned int sysctl_sched_latency;
1406extern unsigned int sysctl_sched_min_granularity; 1407extern unsigned int sysctl_sched_min_granularity;
1407extern unsigned int sysctl_sched_wakeup_granularity; 1408extern unsigned int sysctl_sched_wakeup_granularity;
1408extern unsigned int sysctl_sched_batch_wakeup_granularity; 1409extern unsigned int sysctl_sched_batch_wakeup_granularity;
1409extern unsigned int sysctl_sched_stat_granularity; 1410extern unsigned int sysctl_sched_stat_granularity;
1410extern unsigned int sysctl_sched_runtime_limit; 1411extern unsigned int sysctl_sched_runtime_limit;
1411extern unsigned int sysctl_sched_compat_yield;
1412extern unsigned int sysctl_sched_child_runs_first; 1412extern unsigned int sysctl_sched_child_runs_first;
1413extern unsigned int sysctl_sched_features; 1413extern unsigned int sysctl_sched_features;
1414#endif
1415
1416extern unsigned int sysctl_sched_compat_yield;
1414 1417
1415#ifdef CONFIG_RT_MUTEXES 1418#ifdef CONFIG_RT_MUTEXES
1416extern int rt_mutex_getprio(struct task_struct *p); 1419extern int rt_mutex_getprio(struct task_struct *p);