Commit 57ad6273 authored by Roman Kiryanov's avatar Roman Kiryanov Committed by Treehugger Robot
Browse files

ANDROID: kernel: cgroup: cpuset: Clear cpus_requested for empty buf



update_cpumask had a special case for empty buf which
did not update cpus_requested. This change reduces
differences (only to parsing) in empty/non-empty codepaths
to make them consistent.

Bug: 243704317
Bug: 174125747
Bug: 120444281
Fixes: 4803def4 ("ANDROID: cpuset: Make cpusets restore on hotplug")
Test: check that writes to /dev/cpuset/background/tasks
Test: work as expected, e.g.:
Test: echo $$ > /dev/cpuset/background/tasks
Test: echo > /dev/cpuset/background/tasks
Signed-off-by: default avatarRoman Kiryanov <rkir@google.com>
Change-Id: I49d320ea046636ec38bd23f053317abc59f64f8e
[satyap@codeaurora.org: port to android-mainline kernel]
Signed-off-by: default avatarSatya Durga Srinivasu Prabhala <satyap@codeaurora.org>
[xuewn.yan@unisoc.com: port to android12-5.4 kernel]
Signed-off-by: default avatarXuewen Yan <xuewen.yan@unisoc.com>
parent 4623fe36
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment