diff options
| -rw-r--r-- | arch/arm/kernel/patch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/kernel/patch.c b/arch/arm/kernel/patch.c index a50dc00d79a2..d0a05a3bdb96 100644 --- a/arch/arm/kernel/patch.c +++ b/arch/arm/kernel/patch.c | |||
| @@ -16,7 +16,7 @@ struct patch { | |||
| 16 | unsigned int insn; | 16 | unsigned int insn; |
| 17 | }; | 17 | }; |
| 18 | 18 | ||
| 19 | static DEFINE_SPINLOCK(patch_lock); | 19 | static DEFINE_RAW_SPINLOCK(patch_lock); |
| 20 | 20 | ||
| 21 | static void __kprobes *patch_map(void *addr, int fixmap, unsigned long *flags) | 21 | static void __kprobes *patch_map(void *addr, int fixmap, unsigned long *flags) |
| 22 | __acquires(&patch_lock) | 22 | __acquires(&patch_lock) |
| @@ -33,7 +33,7 @@ static void __kprobes *patch_map(void *addr, int fixmap, unsigned long *flags) | |||
| 33 | return addr; | 33 | return addr; |
| 34 | 34 | ||
| 35 | if (flags) | 35 | if (flags) |
| 36 | spin_lock_irqsave(&patch_lock, *flags); | 36 | raw_spin_lock_irqsave(&patch_lock, *flags); |
| 37 | else | 37 | else |
| 38 | __acquire(&patch_lock); | 38 | __acquire(&patch_lock); |
| 39 | 39 | ||
| @@ -48,7 +48,7 @@ static void __kprobes patch_unmap(int fixmap, unsigned long *flags) | |||
| 48 | clear_fixmap(fixmap); | 48 | clear_fixmap(fixmap); |
| 49 | 49 | ||
| 50 | if (flags) | 50 | if (flags) |
| 51 | spin_unlock_irqrestore(&patch_lock, *flags); | 51 | raw_spin_unlock_irqrestore(&patch_lock, *flags); |
| 52 | else | 52 | else |
| 53 | __release(&patch_lock); | 53 | __release(&patch_lock); |
| 54 | } | 54 | } |
