diff options
author | Peter Zijlstra <a.p.zijlstra@chello.nl> | 2009-09-10 07:42:00 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-09-15 10:01:04 -0400 |
commit | 5f3edc1b1ead6d9bd45a85c551f44eff8fe76b9f (patch) | |
tree | 46f987010ca017be945831b76d8ea846f1ba8fc9 /include/linux | |
parent | aaee1203ca52b9db799433c33c9bffc33cdf8909 (diff) |
sched: Hook sched_balance_self() into sched_class::select_task_rq()
Rather ugly patch to fully place the sched_balance_self() code
inside the fair class.
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/sched.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index f3d74bd04d18..5d3c9900943e 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -811,6 +811,7 @@ enum cpu_idle_type { | |||
811 | #define SD_SERIALIZE 0x0400 /* Only a single load balancing instance */ | 811 | #define SD_SERIALIZE 0x0400 /* Only a single load balancing instance */ |
812 | #define SD_WAKE_IDLE_FAR 0x0800 /* Gain latency sacrificing cache hit */ | 812 | #define SD_WAKE_IDLE_FAR 0x0800 /* Gain latency sacrificing cache hit */ |
813 | #define SD_PREFER_SIBLING 0x1000 /* Prefer to place tasks in a sibling domain */ | 813 | #define SD_PREFER_SIBLING 0x1000 /* Prefer to place tasks in a sibling domain */ |
814 | #define SD_BALANCE_WAKE 0x2000 /* Balance on wakeup */ | ||
814 | 815 | ||
815 | enum powersavings_balance_level { | 816 | enum powersavings_balance_level { |
816 | POWERSAVINGS_BALANCE_NONE = 0, /* No power saving load balance */ | 817 | POWERSAVINGS_BALANCE_NONE = 0, /* No power saving load balance */ |
@@ -1032,7 +1033,7 @@ struct sched_class { | |||
1032 | void (*put_prev_task) (struct rq *rq, struct task_struct *p); | 1033 | void (*put_prev_task) (struct rq *rq, struct task_struct *p); |
1033 | 1034 | ||
1034 | #ifdef CONFIG_SMP | 1035 | #ifdef CONFIG_SMP |
1035 | int (*select_task_rq)(struct task_struct *p, int sync); | 1036 | int (*select_task_rq)(struct task_struct *p, int flag, int sync); |
1036 | 1037 | ||
1037 | unsigned long (*load_balance) (struct rq *this_rq, int this_cpu, | 1038 | unsigned long (*load_balance) (struct rq *this_rq, int this_cpu, |
1038 | struct rq *busiest, unsigned long max_load_move, | 1039 | struct rq *busiest, unsigned long max_load_move, |