diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:02 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:02 -0400 |
commit | 2bd8e6d422a4f44c0994f909317eba80b0fe08a1 (patch) | |
tree | 3548dd01c056e3f7c3c04fd85cc4726b95677c15 /include/linux | |
parent | 38ad464d410dadceda1563f36bdb0be7fe4c8938 (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/linux')
-rw-r--r-- | include/linux/sched.h | 5 |
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 | ||
1403 | extern void sched_idle_next(void); | 1403 | extern void sched_idle_next(void); |
1404 | 1404 | ||
1405 | #ifdef CONFIG_SCHED_DEBUG | ||
1405 | extern unsigned int sysctl_sched_latency; | 1406 | extern unsigned int sysctl_sched_latency; |
1406 | extern unsigned int sysctl_sched_min_granularity; | 1407 | extern unsigned int sysctl_sched_min_granularity; |
1407 | extern unsigned int sysctl_sched_wakeup_granularity; | 1408 | extern unsigned int sysctl_sched_wakeup_granularity; |
1408 | extern unsigned int sysctl_sched_batch_wakeup_granularity; | 1409 | extern unsigned int sysctl_sched_batch_wakeup_granularity; |
1409 | extern unsigned int sysctl_sched_stat_granularity; | 1410 | extern unsigned int sysctl_sched_stat_granularity; |
1410 | extern unsigned int sysctl_sched_runtime_limit; | 1411 | extern unsigned int sysctl_sched_runtime_limit; |
1411 | extern unsigned int sysctl_sched_compat_yield; | ||
1412 | extern unsigned int sysctl_sched_child_runs_first; | 1412 | extern unsigned int sysctl_sched_child_runs_first; |
1413 | extern unsigned int sysctl_sched_features; | 1413 | extern unsigned int sysctl_sched_features; |
1414 | #endif | ||
1415 | |||
1416 | extern unsigned int sysctl_sched_compat_yield; | ||
1414 | 1417 | ||
1415 | #ifdef CONFIG_RT_MUTEXES | 1418 | #ifdef CONFIG_RT_MUTEXES |
1416 | extern int rt_mutex_getprio(struct task_struct *p); | 1419 | extern int rt_mutex_getprio(struct task_struct *p); |