diff options
Diffstat (limited to 'include/linux/sched.h')
| -rw-r--r-- | include/linux/sched.h | 34 |
1 files changed, 9 insertions, 25 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 78efe7c485ac..4b1753f7e48e 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
| @@ -97,7 +97,7 @@ struct sched_param { | |||
| 97 | struct exec_domain; | 97 | struct exec_domain; |
| 98 | struct futex_pi_state; | 98 | struct futex_pi_state; |
| 99 | struct robust_list_head; | 99 | struct robust_list_head; |
| 100 | struct bio; | 100 | struct bio_list; |
| 101 | struct fs_struct; | 101 | struct fs_struct; |
| 102 | struct bts_context; | 102 | struct bts_context; |
| 103 | struct perf_event_context; | 103 | struct perf_event_context; |
| @@ -740,14 +740,6 @@ struct user_struct { | |||
| 740 | uid_t uid; | 740 | uid_t uid; |
| 741 | struct user_namespace *user_ns; | 741 | struct user_namespace *user_ns; |
| 742 | 742 | ||
| 743 | #ifdef CONFIG_USER_SCHED | ||
| 744 | struct task_group *tg; | ||
| 745 | #ifdef CONFIG_SYSFS | ||
| 746 | struct kobject kobj; | ||
| 747 | struct delayed_work work; | ||
| 748 | #endif | ||
| 749 | #endif | ||
| 750 | |||
| 751 | #ifdef CONFIG_PERF_EVENTS | 743 | #ifdef CONFIG_PERF_EVENTS |
| 752 | atomic_long_t locked_vm; | 744 | atomic_long_t locked_vm; |
| 753 | #endif | 745 | #endif |
| @@ -878,7 +870,10 @@ static inline int sd_balance_for_mc_power(void) | |||
| 878 | if (sched_smt_power_savings) | 870 | if (sched_smt_power_savings) |
| 879 | return SD_POWERSAVINGS_BALANCE; | 871 | return SD_POWERSAVINGS_BALANCE; |
| 880 | 872 | ||
| 881 | return SD_PREFER_SIBLING; | 873 | if (!sched_mc_power_savings) |
| 874 | return SD_PREFER_SIBLING; | ||
| 875 | |||
| 876 | return 0; | ||
| 882 | } | 877 | } |
| 883 | 878 | ||
| 884 | static inline int sd_balance_for_package_power(void) | 879 | static inline int sd_balance_for_package_power(void) |
| @@ -1084,7 +1079,8 @@ struct sched_domain; | |||
| 1084 | struct sched_class { | 1079 | struct sched_class { |
| 1085 | const struct sched_class *next; | 1080 | const struct sched_class *next; |
| 1086 | 1081 | ||
| 1087 | void (*enqueue_task) (struct rq *rq, struct task_struct *p, int wakeup); | 1082 | void (*enqueue_task) (struct rq *rq, struct task_struct *p, int wakeup, |
| 1083 | bool head); | ||
| 1088 | void (*dequeue_task) (struct rq *rq, struct task_struct *p, int sleep); | 1084 | void (*dequeue_task) (struct rq *rq, struct task_struct *p, int sleep); |
| 1089 | void (*yield_task) (struct rq *rq); | 1085 | void (*yield_task) (struct rq *rq); |
| 1090 | 1086 | ||
| @@ -1096,14 +1092,6 @@ struct sched_class { | |||
| 1096 | #ifdef CONFIG_SMP | 1092 | #ifdef CONFIG_SMP |
| 1097 | int (*select_task_rq)(struct task_struct *p, int sd_flag, int flags); | 1093 | int (*select_task_rq)(struct task_struct *p, int sd_flag, int flags); |
| 1098 | 1094 | ||
| 1099 | unsigned long (*load_balance) (struct rq *this_rq, int this_cpu, | ||
| 1100 | struct rq *busiest, unsigned long max_load_move, | ||
| 1101 | struct sched_domain *sd, enum cpu_idle_type idle, | ||
| 1102 | int *all_pinned, int *this_best_prio); | ||
| 1103 | |||
| 1104 | int (*move_one_task) (struct rq *this_rq, int this_cpu, | ||
| 1105 | struct rq *busiest, struct sched_domain *sd, | ||
| 1106 | enum cpu_idle_type idle); | ||
| 1107 | void (*pre_schedule) (struct rq *this_rq, struct task_struct *task); | 1095 | void (*pre_schedule) (struct rq *this_rq, struct task_struct *task); |
| 1108 | void (*post_schedule) (struct rq *this_rq); | 1096 | void (*post_schedule) (struct rq *this_rq); |
| 1109 | void (*task_waking) (struct rq *this_rq, struct task_struct *task); | 1097 | void (*task_waking) (struct rq *this_rq, struct task_struct *task); |
| @@ -1466,7 +1454,7 @@ struct task_struct { | |||
| 1466 | void *journal_info; | 1454 | void *journal_info; |
| 1467 | 1455 | ||
| 1468 | /* stacked block device info */ | 1456 | /* stacked block device info */ |
| 1469 | struct bio *bio_list, **bio_tail; | 1457 | struct bio_list *bio_list; |
| 1470 | 1458 | ||
| 1471 | /* VM state */ | 1459 | /* VM state */ |
| 1472 | struct reclaim_state *reclaim_state; | 1460 | struct reclaim_state *reclaim_state; |
| @@ -2517,13 +2505,9 @@ extern long sched_getaffinity(pid_t pid, struct cpumask *mask); | |||
| 2517 | 2505 | ||
| 2518 | extern void normalize_rt_tasks(void); | 2506 | extern void normalize_rt_tasks(void); |
| 2519 | 2507 | ||
| 2520 | #ifdef CONFIG_GROUP_SCHED | 2508 | #ifdef CONFIG_CGROUP_SCHED |
| 2521 | 2509 | ||
| 2522 | extern struct task_group init_task_group; | 2510 | extern struct task_group init_task_group; |
| 2523 | #ifdef CONFIG_USER_SCHED | ||
| 2524 | extern struct task_group root_task_group; | ||
| 2525 | extern void set_tg_uid(struct user_struct *user); | ||
| 2526 | #endif | ||
| 2527 | 2511 | ||
| 2528 | extern struct task_group *sched_create_group(struct task_group *parent); | 2512 | extern struct task_group *sched_create_group(struct task_group *parent); |
| 2529 | extern void sched_destroy_group(struct task_group *tg); | 2513 | extern void sched_destroy_group(struct task_group *tg); |
