[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1437654681-20893-1-git-send-email-xlpang@126.com>
Date: Thu, 23 Jul 2015 20:31:21 +0800
From: Xunlei Pang <xlpang@....com>
To: linux-kernel@...r.kernel.org
Cc: Daniel Lezcano <daniel.lezcano@...aro.org>,
"Rafael J. Wysocki" <rjw@...ysocki.net>, linux-pm@...r.kernel.org,
Xunlei Pang <pang.xunlei@....com.cn>
Subject: [PATCH] cpuidle/coupled: Init cpuidle_device::safe_state_index
From: Xunlei Pang <pang.xunlei@....com.cn>
cpuidle_device::safe_state_index need to be initialized before use,
so assign the driver's safe_state_index to it.
Signed-off-by: Xunlei Pang <pang.xunlei@....com.cn>
---
drivers/cpuidle/cpuidle.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c
index e8e2775..ed5c8efe 100644
--- a/drivers/cpuidle/cpuidle.c
+++ b/drivers/cpuidle/cpuidle.c
@@ -585,6 +585,8 @@ int cpuidle_register(struct cpuidle_driver *drv,
*/
if (coupled_cpus)
device->coupled_cpus = *coupled_cpus;
+
+ device->safe_state_index = drv->safe_state_index;
#endif
ret = cpuidle_register_device(device);
if (!ret)
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists