diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index ab8ffc54423a..0bc81a151e50 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -570,6 +570,11 @@ enum idle_type | |||
570 | #define SD_WAKE_AFFINE 32 /* Wake task to waking CPU */ | 570 | #define SD_WAKE_AFFINE 32 /* Wake task to waking CPU */ |
571 | #define SD_WAKE_BALANCE 64 /* Perform balancing at task wakeup */ | 571 | #define SD_WAKE_BALANCE 64 /* Perform balancing at task wakeup */ |
572 | #define SD_SHARE_CPUPOWER 128 /* Domain members share cpu power */ | 572 | #define SD_SHARE_CPUPOWER 128 /* Domain members share cpu power */ |
573 | #define SD_POWERSAVINGS_BALANCE 256 /* Balance for power savings */ | ||
574 | |||
575 | #define BALANCE_FOR_POWER ((sched_mc_power_savings || sched_smt_power_savings) \ | ||
576 | ? SD_POWERSAVINGS_BALANCE : 0) | ||
577 | |||
573 | 578 | ||
574 | struct sched_group { | 579 | struct sched_group { |
575 | struct sched_group *next; /* Must be a circular list */ | 580 | struct sched_group *next; /* Must be a circular list */ |
@@ -1412,6 +1417,11 @@ static inline void arch_pick_mmap_layout(struct mm_struct *mm) | |||
1412 | extern long sched_setaffinity(pid_t pid, cpumask_t new_mask); | 1417 | extern long sched_setaffinity(pid_t pid, cpumask_t new_mask); |
1413 | extern long sched_getaffinity(pid_t pid, cpumask_t *mask); | 1418 | extern long sched_getaffinity(pid_t pid, cpumask_t *mask); |
1414 | 1419 | ||
1420 | #include <linux/sysdev.h> | ||
1421 | extern int sched_mc_power_savings, sched_smt_power_savings; | ||
1422 | extern struct sysdev_attribute attr_sched_mc_power_savings, attr_sched_smt_power_savings; | ||
1423 | extern int sched_create_sysfs_power_savings_entries(struct sysdev_class *cls); | ||
1424 | |||
1415 | extern void normalize_rt_tasks(void); | 1425 | extern void normalize_rt_tasks(void); |
1416 | 1426 | ||
1417 | #ifdef CONFIG_PM | 1427 | #ifdef CONFIG_PM |