]> git.baikalelectronics.ru Git - kernel.git/commit
mmc: use lock instead of claim in debug check
authorPierre Ossman <drzeus@drzeus.cx>
Tue, 8 May 2007 20:35:17 +0000 (22:35 +0200)
committerPierre Ossman <drzeus@drzeus.cx>
Tue, 8 May 2007 20:42:57 +0000 (22:42 +0200)
commit6aa0fe6e284d985408ed8c0986b8e0f67e95a434
tree0d45e47c53d71390519b5890021417e3ec1b2b3b
parentef516792a23e32352ffa35ecbfe1920564512691
mmc: use lock instead of claim in debug check

As mmc_detect_change() can be called from irq context, using
claim (which can sleep) is inherently unsafe. Use the host
spinlock instead, which also is faster.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
drivers/mmc/core/core.c