Cpuquiet: Fix min_cpus == 1 not forcing G cluster
authorSai Gurrappadi <sgurrappadi@nvidia.com>
Wed, 4 Sep 2013 00:57:14 +0000 (17:57 -0700)
committerAjay Nandakumar <anandakumarm@nvidia.com>
Thu, 3 Oct 2013 13:47:38 +0000 (18:47 +0530)
commit33e1c587e7b2ca1dde8e994df6f3275af4da4c16
treebcefaaee71a8505adf163d3c4763a4e55377fb2d
parent63c920c08cbfca7b0f26e5d0418f9e51e38da6aa
Cpuquiet: Fix min_cpus == 1 not forcing G cluster

Refactored the logic that decides when to cluster switch
in order to enforce cluster switching priority given
different constraints. Following is the priority

highest to lowest priority:

  - no_lp sysfs node: -1 = LP; 1 = G; 0 = no constraint
  - min_cpus = 1 forces G cluster
  - frequency changes when on a single core

Bug 1348717

Change-Id: I9a4951808f1916a1929180c45a7dd58640c62a66
Signed-off-by: Sai Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/277346
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Peter Boonstoppel <pboonstoppel@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Diwakar Tundlam <dtundlam@nvidia.com>
(cherry picked from commit c59c0b45244c9e6fc7e2c264b11ac82424e19c24)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
arch/arm/mach-tegra/cpuquiet.c