]> git.ipfire.org Git - people/arne_f/kernel.git/blobdiff - arch/arm/kernel/patch.c
ARM: 8839/1: kprobe: make patch_lock a raw_spinlock_t
[people/arne_f/kernel.git] / arch / arm / kernel / patch.c
index 69bda1a5707ee826ededa348a90a55c394ad8613..1f665acaa6a9a73571f0b048deb405d542f88803 100644 (file)
@@ -15,7 +15,7 @@ struct patch {
        unsigned int insn;
 };
 
-static DEFINE_SPINLOCK(patch_lock);
+static DEFINE_RAW_SPINLOCK(patch_lock);
 
 static void __kprobes *patch_map(void *addr, int fixmap, unsigned long *flags)
        __acquires(&patch_lock)
@@ -32,7 +32,7 @@ static void __kprobes *patch_map(void *addr, int fixmap, unsigned long *flags)
                return addr;
 
        if (flags)
-               spin_lock_irqsave(&patch_lock, *flags);
+               raw_spin_lock_irqsave(&patch_lock, *flags);
        else
                __acquire(&patch_lock);
 
@@ -47,7 +47,7 @@ static void __kprobes patch_unmap(int fixmap, unsigned long *flags)
        clear_fixmap(fixmap);
 
        if (flags)
-               spin_unlock_irqrestore(&patch_lock, *flags);
+               raw_spin_unlock_irqrestore(&patch_lock, *flags);
        else
                __release(&patch_lock);
 }