diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-11-23 03:04:05 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2015-11-23 03:04:05 -0500 |
commit | 92907cbbef8625bb3998d1eb385fc88f23c97a3f (patch) | |
tree | 15626ff9287e37c3cb81c7286d6db5a7fd77c854 /include/linux/cpuset.h | |
parent | 15fbfccfe92c62ae8d1ecc647c44157ed01ac02e (diff) | |
parent | 1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff) |
Merge tag 'v4.4-rc2' into drm-intel-next-queued
Linux 4.4-rc2
Backmerge to get at
commit 1b0e3a049efe471c399674fd954500ce97438d30
Author: Imre Deak <imre.deak@intel.com>
Date: Thu Nov 5 23:04:11 2015 +0200
drm/i915/skl: disable display side power well support for now
so that we can proplery re-eanble skl power wells in -next.
Conflicts are just adjacent lines changed, except for intel_fbdev.c
where we need to interleave the changs. Nothing nefarious.
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'include/linux/cpuset.h')
-rw-r--r-- | include/linux/cpuset.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/linux/cpuset.h b/include/linux/cpuset.h index 1b357997cac5..85a868ccb493 100644 --- a/include/linux/cpuset.h +++ b/include/linux/cpuset.h | |||
@@ -93,7 +93,7 @@ extern int current_cpuset_is_being_rebound(void); | |||
93 | 93 | ||
94 | extern void rebuild_sched_domains(void); | 94 | extern void rebuild_sched_domains(void); |
95 | 95 | ||
96 | extern void cpuset_print_task_mems_allowed(struct task_struct *p); | 96 | extern void cpuset_print_current_mems_allowed(void); |
97 | 97 | ||
98 | /* | 98 | /* |
99 | * read_mems_allowed_begin is required when making decisions involving | 99 | * read_mems_allowed_begin is required when making decisions involving |
@@ -104,6 +104,9 @@ extern void cpuset_print_task_mems_allowed(struct task_struct *p); | |||
104 | */ | 104 | */ |
105 | static inline unsigned int read_mems_allowed_begin(void) | 105 | static inline unsigned int read_mems_allowed_begin(void) |
106 | { | 106 | { |
107 | if (!cpusets_enabled()) | ||
108 | return 0; | ||
109 | |||
107 | return read_seqcount_begin(¤t->mems_allowed_seq); | 110 | return read_seqcount_begin(¤t->mems_allowed_seq); |
108 | } | 111 | } |
109 | 112 | ||
@@ -115,6 +118,9 @@ static inline unsigned int read_mems_allowed_begin(void) | |||
115 | */ | 118 | */ |
116 | static inline bool read_mems_allowed_retry(unsigned int seq) | 119 | static inline bool read_mems_allowed_retry(unsigned int seq) |
117 | { | 120 | { |
121 | if (!cpusets_enabled()) | ||
122 | return false; | ||
123 | |||
118 | return read_seqcount_retry(¤t->mems_allowed_seq, seq); | 124 | return read_seqcount_retry(¤t->mems_allowed_seq, seq); |
119 | } | 125 | } |
120 | 126 | ||
@@ -219,7 +225,7 @@ static inline void rebuild_sched_domains(void) | |||
219 | partition_sched_domains(1, NULL, NULL); | 225 | partition_sched_domains(1, NULL, NULL); |
220 | } | 226 | } |
221 | 227 | ||
222 | static inline void cpuset_print_task_mems_allowed(struct task_struct *p) | 228 | static inline void cpuset_print_current_mems_allowed(void) |
223 | { | 229 | { |
224 | } | 230 | } |
225 | 231 | ||