From: Li Zefan Date: Wed, 5 Jun 2013 09:15:59 +0000 (+0800) Subject: cpuset: re-structure update_cpumask() a bit X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~43^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a73456f37b9dbc917398387d0cba926b4455b70f;p=pandora-kernel.git cpuset: re-structure update_cpumask() a bit Check if cpus_allowed is to be changed before calling validate_change(). This won't change any behavior, but later it will allow us to do this: # mkdir /cpuset/child # echo $$ > /cpuset/child/tasks /* empty cpuset */ # echo > /cpuset/child/cpuset.cpus /* do nothing, won't fail */ Without this patch, the last operation will fail. Signed-off-by: Li Zefan Signed-off-by: Tejun Heo --- Reading git-diff-tree failed