mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 20:32:04 +09:00
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:
committed by
Huang, Tao
parent
a9b2c1b41b
commit
e2de804b94
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user