From: Xie XiuQi Date: Fri, 29 Mar 2013 01:43:47 +0000 (+0800) Subject: Fix example error_injection_tool X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~144^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=83d435dd6e24b17955f91480f633bb39f0a7c2b4;p=pandora-kernel.git Fix example error_injection_tool I got a "sched_setaffinity:: Invalid argument" error when using err_injection_tool to inject error on a system with over 32 cpus. Error information when injecting an error on a system with over 32 cpus: $ ./err_injection_tool -i /sys/devices/system/cpu/cpu0/err_inject//err_type_info Begine at Tue Mar 26 11:20:08 2013 Configurations: On cpu32: loop=10, interval=5(s) err_type_info=4101,err_struct_info=95 Error sched_setaffinity:: Invalid argument All done This because there is overflow when calculating the cpumask: the type of (1< 31, (1< Signed-off-by: Tony Luck --- Reading git-diff-tree failed