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
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;