[RESEND PATCH v4 11/11] powerpc: Use patch_instruction_unlocked() in loops

2021-05-05 Thread Christopher M. Riedl
Now that patching requires a lock to prevent concurrent access to patching_mm, every call to patch_instruction() acquires and releases a spinlock. There are several places where patch_instruction() is called in a loop. Convert these to acquire the lock once before the loop, call patch_instruction_u

[PATCH v4 11/11] powerpc: Use patch_instruction_unlocked() in loops

2021-04-29 Thread Christopher M. Riedl
Now that patching requires a lock to prevent concurrent access to patching_mm, every call to patch_instruction() acquires and releases a spinlock. There are several places where patch_instruction() is called in a loop. Convert these to acquire the lock once before the loop, call patch_instruction_u