Thread (31 messages) 31 messages, 6 authors, 2014-08-18

Re: [PATCH v7 8/8] drivers: cpuidle: initialize Exynos driver through DT

From: Lorenzo Pieralisi <hidden>
Date: 2014-08-15 21:52:01
Also in: linux-arm-kernel, linux-pm

On Fri, Aug 15, 2014 at 10:45:13PM +0100, Lina Iyer wrote:
On Fri, Aug 15, 2014 at 10:40:34PM +0100, Lorenzo Pieralisi wrote:
quoted
On Fri, Aug 15, 2014 at 10:12:33PM +0100, Lina Iyer wrote:

[...]
quoted
quoted
static int exynos_cpuidle_probe(struct platform_device *pdev)
{
-	int ret;
+	int ret, i;
+	struct cpuidle_driver *drv = &exynos_idle_driver;

	exynos_enter_aftr = (void *)(pdev->dev.platform_data);

-	ret = cpuidle_register(&exynos_idle_driver, NULL);
+	drv->cpumask = kzalloc(cpumask_size(), GFP_KERNEL);
+	if (!drv->cpumask)
+		return -ENOMEM;
drv->cpumask would not have any cpu set. I dont see it being modified
elsewhere.
Gah, I should have missed that while refactoring, I can just compile test this
patch so it went unnoticed. Fixed (by copying the possible mask to
drv->cpumask).

Thank you !
Lorenzo
Noticed that in the big.little exynos driver  as well.
If you mean drivers/cpuidle-big_little.c, there masks are initialized
before parsing DT, so code is correct and I could test that.

Thanks,
Lorenzo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help