diff options
author | Simon Horman <horms@verge.net.au> | 2011-08-25 10:27:25 +0900 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2011-10-26 15:43:36 -0400 |
commit | 54680fe7f6ad0fb0c52e330484e2cf1609587862 (patch) | |
tree | fec1e2b9f2f55e710d29caaa76c623fc765f61f5 /drivers/mmc/host/tmio_mmc.h | |
parent | ad5fd97288655b5628052c1fa906419417c86100 (diff) | |
download | blackbird-obmc-linux-54680fe7f6ad0fb0c52e330484e2cf1609587862.tar.gz blackbird-obmc-linux-54680fe7f6ad0fb0c52e330484e2cf1609587862.zip |
mmc: tmio: Cache interrupt masks
This avoids the need to look up the masks each time an interrupt is handled.
As suggested by Guennadi.
Cc: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Acked-by: Magnus Damm <magnus.damm@gmail.com>
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/tmio_mmc.h')
-rw-r--r-- | drivers/mmc/host/tmio_mmc.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/host/tmio_mmc.h b/drivers/mmc/host/tmio_mmc.h index eeaf64391fbe..1cf8db558d08 100644 --- a/drivers/mmc/host/tmio_mmc.h +++ b/drivers/mmc/host/tmio_mmc.h @@ -79,6 +79,10 @@ struct tmio_mmc_host { struct delayed_work delayed_reset_work; struct work_struct done; + /* Cache IRQ mask */ + u32 sdcard_irq_mask; + u32 sdio_irq_mask; + spinlock_t lock; /* protect host private data */ unsigned long last_req_ts; struct mutex ios_lock; /* protect set_ios() context */ |