mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
[PATCH] kprobes: moves lock-unlock to non-arch kprobe_flush_task
This patch moves the lock/unlock of the arch specific kprobe_flush_task() to the non-arch specific kprobe_flusk_task(). Signed-off-by: Hien Nguyen <hien@us.ibm.com> Acked-by: Prasanna S Panchamukhi <prasanna@in.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
7e1048b11c
commit
0aa55e4d7d
3 changed files with 6 additions and 7 deletions
|
@ -33,7 +33,6 @@
|
|||
#include <linux/list.h>
|
||||
#include <linux/notifier.h>
|
||||
#include <linux/smp.h>
|
||||
#include <linux/spinlock.h>
|
||||
|
||||
#include <asm/kprobes.h>
|
||||
|
||||
|
@ -101,7 +100,7 @@ extern void trampoline_post_handler(struct kprobe *p, struct pt_regs *regs,
|
|||
unsigned long flags);
|
||||
extern struct task_struct *arch_get_kprobe_task(void *ptr);
|
||||
extern void arch_prepare_kretprobe(struct kretprobe *rp, struct pt_regs *regs);
|
||||
extern void arch_kprobe_flush_task(struct task_struct *tk, spinlock_t *kp_lock);
|
||||
extern void arch_kprobe_flush_task(struct task_struct *tk);
|
||||
#else /* ARCH_SUPPORTS_KRETPROBES */
|
||||
static inline void kretprobe_trampoline(void)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue