Re: [PATCH] OMAP3:PM: fix lockdep warning caused by omap3_pm_init

2009-08-28 Thread Kevin Hilman
tom.leim...@gmail.com writes: > From: Ming Lei > > This patch uses kmalloc(size,GFP_ATOMIC) instead of kmalloc(size,GFP_KERNEL) > to allocate memory for instance of struct power_state in pwrdms_setup(), > since it may be called by pwrdm_for_each() with irq disabled. > > It is a easy fix for the f

[PATCH] OMAP3:PM: fix lockdep warning caused by omap3_pm_init

2009-08-22 Thread tom . leiming
From: Ming Lei This patch uses kmalloc(size,GFP_ATOMIC) instead of kmalloc(size,GFP_KERNEL) to allocate memory for instance of struct power_state in pwrdms_setup(), since it may be called by pwrdm_for_each() with irq disabled. It is a easy fix for the following lockdep warning caused by kmalloc(