cpuquiet: Support X cpus for runnables governor
authorSai Gurrappadi <sgurrappadi@nvidia.com>
Fri, 20 Dec 2013 00:30:02 +0000 (16:30 -0800)
committerHuang, Tao <huangtao@rock-chips.com>
Mon, 18 May 2015 08:07:12 +0000 (16:07 +0800)
commite3d26340f7625bf8b6af315aba9d8dbc54c2bbbb
treeccff3bfe1abfb79ff0eace2c388e9b69ba819e29
parent46f7d5dbded45dfbc239848e4875ec7e9e8a07a9
cpuquiet: Support X cpus for runnables governor

Runnables govenror will now work properly for any number of cpus as
defined by NR_CPUS. Switched the ordering of nr_run_threshold init to
ensure that array is initialized correctly to UINT_MAX for NR_CPUS-1 cpu.

Bug 1427140

Change-Id: Ic612406ceaf80dd7e0b6693906df339f8b6512aa
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/369016
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
drivers/cpuquiet/governors/runnable_threads.c