cpuquiet: Properly return the first registered governor

Change-Id: I8a21a15d5cf8e4c91a166810387b5d8f1dd7cdb6
Signed-off-by: Sai Charan Gurrappadi <sgurrappadi@nvidia.com>
Reviewed-on: http://git-master/r/111284
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>

Rebase-Id: R5df2ed43a42e0bd32eee1601a6f945bf6df90227
This commit is contained in:
Sai Charan Gurrappadi
2012-06-22 15:42:59 -07:00
committed by Huang, Tao
parent a9b2c1b41b
commit e2de804b94

View File

@@ -28,7 +28,8 @@ struct cpuquiet_governor *cpuquiet_curr_governor;
struct cpuquiet_governor *cpuquiet_get_first_governor(void)
{
if (!list_empty(&cpuquiet_governors))
return list_entry(&cpuquiet_governors, struct cpuquiet_governor,
return list_entry(cpuquiet_governors.next,
struct cpuquiet_governor,
governor_list);
else
return NULL;