diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2017-11-23 13:34:32 +0100 |
---|---|---|
committer | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2017-11-24 10:54:43 +0100 |
commit | 0426c046546140fc42db5addeb7e2298dd0b6fb1 (patch) | |
tree | bf43ad8a650fadd6bc700bdb01c146084d2eb1ef /drivers/cpuidle/sysfs.c | |
parent | drm/i915/pmu: Remove conditional HOTPLUG_CPU registration (diff) | |
download | linux-0426c046546140fc42db5addeb7e2298dd0b6fb1.tar.xz linux-0426c046546140fc42db5addeb7e2298dd0b6fb1.zip |
drm/i915/pmu: Only allow running on a single CPU
We do two things, both of which are purely to simplify and clarify the
implementation:
1.
Simplify the CPU online callback so it is more obvious that the purpose
there is to set a single CPU mask bit for the first CPU which comes
online. Using cpumask_weight for this reads more obvious than the trick
with cpumask_and_any.
2.
Modify the event init so that events can be created only on a single CPU.
This removes looking at the requested CPU thread siblings, and only allows
creating on the current active CPU.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Dmitry Rogozhkin <dmitry.v.rogozhkin@intel.com>
Tested-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20171123123432.25035-2-tvrtko.ursulin@linux.intel.com
Diffstat (limited to 'drivers/cpuidle/sysfs.c')
0 files changed, 0 insertions, 0 deletions