Re: [PATCH 3/3] arm/arm64: speed up spinlocks and atomic ops

2015-07-03 Thread Paolo Bonzini
On 25/06/2015 20:45, Andrew Jones wrote: spinlock torture tests made it clear that checking mmu_enabled() every time we call spin_lock is a bad idea. As most tests will want the MMU enabled the entire time, then we can inline a light weight nobody disabled the mmu check, and bail out early.

[PATCH 3/3] arm/arm64: speed up spinlocks and atomic ops

2015-06-25 Thread Andrew Jones
spinlock torture tests made it clear that checking mmu_enabled() every time we call spin_lock is a bad idea. As most tests will want the MMU enabled the entire time, then we can inline a light weight nobody disabled the mmu check, and bail out early. Adding a light weight inlined check vs. a