diff options
author | Ulf Hansson <[email protected]> | 2019-09-08 12:12:26 +0200 |
---|---|---|
committer | Ulf Hansson <[email protected]> | 2019-09-11 16:10:18 +0200 |
commit | bd880b00697befb73eff7220ee20bdae4fdd487b (patch) | |
tree | 35cb7dea2412c70be23b86af22415fcd5ff5fe32 /scripts/gcc-plugins/cyc_complexity_plugin.c | |
parent | 20964a11fa8b70019af83785fd4d639f7b90ae4d (diff) |
mmc: core: Add helper function to indicate if SDIO IRQs is enabled
To avoid each host driver supporting SDIO IRQs, from keeping track
internally about if SDIO IRQs has been claimed, let's introduce a common
helper function, sdio_irq_claimed().
The function returns true if SDIO IRQs are claimed, via using the
information about the number of claimed irqs. This is safe, even without
any locks, as long as the helper function is called only from
runtime/system suspend callbacks of the host driver.
Tested-by: Matthias Kaehlcke <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
Reviewed-by: Douglas Anderson <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions