regmap: Ensure regmap_register_patch() is compatible with fast_io
authorMark Brown <broonie@linaro.org>
Tue, 18 Mar 2014 10:53:26 +0000 (10:53 +0000)
committerMark Brown <broonie@linaro.org>
Tue, 18 Mar 2014 12:21:35 +0000 (12:21 +0000)
commit56fb1c74f3bda1c0100fc3e9a7888c229174f9a4
tree4cf163d91b52f07fec2fcde9c1d7f4867b794e2a
parent38dbfb59d1175ef458d006556061adeaa8751b72
regmap: Ensure regmap_register_patch() is compatible with fast_io

With fast_io we use mutexes to lock the I/O operations so we would need
to do GFP_ATOMIC allocations if we wanted to do allocations inside the
lock as we do currently. Since it is unlikely that we will want to register
a patch outside of init where concurrency shouldn't be an issue move the
allocation of the patch data outside the lock.

Reported-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/base/regmap/regmap.c
This page took 0.028751 seconds and 5 git commands to generate.