commit | c117b20ad71e870e0f0816400d0e26725682514a | [log] [tgz] |
---|---|---|
author | Christoffer Dall <cdall@linaro.org> | Sat Mar 18 13:48:42 2017 +0100 |
committer | Christoffer Dall <cdall@linaro.org> | Tue Mar 21 21:31:50 2017 +0100 |
tree | 0ed8f081c36b1d2d03a7b36afac5ef490757ae87 | |
parent | 06054bcd71563a1a42745dacefe7eb33801d4c93 [diff] |
KVM: arm/arm64: vgic: Improve sync_hwstate performance There is no need to call any functions to fold LRs when we don't use any LRs and we don't need to mess with overflow flags, take spinlocks, or prune the AP list if the AP list is empty. Note: list_empty is a single atomic read (uses READ_ONCE) and can therefore check if a list is empty or not without the need to take the spinlock protecting the list. Signed-off-by: Christoffer Dall <cdall@linaro.org>