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