]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mmc: core: use non-reentrant workqueue for clock gating
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 18 Aug 2011 12:23:49 +0000 (15:23 +0300)
committerChris Ball <cjb@laptop.org>
Mon, 22 Aug 2011 21:57:31 +0000 (17:57 -0400)
commit653342a148e679ab113fc1b98f280ca97572b3b1
tree6e5359eb2aaed7b622bd6eb8697861c331259cfe
parent1d607a18c6043f32a1b63969b528d5ddd44343dc
mmc: core: use non-reentrant workqueue for clock gating

The default multithread workqueue can cause the same work to be executed
concurrently on a different CPUs. This isn't really suitable for clock
gating as it might already gated the clock and gating it twice results both
host->clk_old and host->ios.clock to be set to 0.

To prevent this from happening we use system_nrt_wq instead.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Tested-by: Chris Ball <cjb@laptop.org>
Cc: <stable@kernel.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/core/host.c