summaryrefslogtreecommitdiff
path: root/drivers/thermal/k3_bandgap.c
diff options
context:
space:
mode:
authorLu Baolu <baolu.lu@linux.intel.com>2022-07-12 03:09:02 +0300
committerJoerg Roedel <jroedel@suse.de>2022-07-15 11:21:39 +0300
commit5eaafdf0c05577f9b6cf8c64dee7d39ccdafa63a (patch)
tree83d2f75b50ee5268f606d4b99be2f57cdd37b79f /drivers/thermal/k3_bandgap.c
parent969aaefbaaf2b444852c1980ac0cbbb66463fdae (diff)
downloadlinux-5eaafdf0c05577f9b6cf8c64dee7d39ccdafa63a.tar.xz
iommu/vt-d: Convert global spinlock into per domain lock
Using a global device_domain_lock spinlock to protect per-domain device tracking lists is an inefficient way, especially considering this lock is also needed in the hot paths. This optimizes the locking mechanism by converting the global lock to per domain lock. On the other hand, as the device tracking lists are never accessed in any interrupt context, there is no need to disable interrupts while spinning. Replace irqsave variant with spinlock calls. Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Link: https://lore.kernel.org/r/20220706025524.2904370-12-baolu.lu@linux.intel.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/thermal/k3_bandgap.c')
0 files changed, 0 insertions, 0 deletions