diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2009-01-06 23:15:32 +0300 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-01-16 22:32:17 +0300 |
commit | 5a4ccaf37ffece09ef33f1cfec67efa8ee56f967 (patch) | |
tree | 9a246d76a019318f658c3db7567664cffb5f2824 /kernel/kprobes.c | |
parent | 33f1d7ecc6cffff3c618a02295de969ebbacd95d (diff) | |
download | linux-5a4ccaf37ffece09ef33f1cfec67efa8ee56f967.tar.xz |
kprobes: check CONFIG_FREEZER instead of CONFIG_PM
Check CONFIG_FREEZER instead of CONFIG_PM because kprobe booster
depends on freeze_processes() and thaw_processes() when CONFIG_PREEMPT=y.
This fixes a linkage error which occurs when CONFIG_PREEMPT=y, CONFIG_PM=y
and CONFIG_FREEZER=n.
Reported-by: Cheng Renquan <crquan@gmail.com>
Signed-off-by: Masami Hiramatsu <mhiramat@redhat.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'kernel/kprobes.c')
-rw-r--r-- | kernel/kprobes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/kprobes.c b/kernel/kprobes.c index 1b9cbdc0127a..7ba8cd9845cb 100644 --- a/kernel/kprobes.c +++ b/kernel/kprobes.c @@ -123,7 +123,7 @@ static int collect_garbage_slots(void); static int __kprobes check_safety(void) { int ret = 0; -#if defined(CONFIG_PREEMPT) && defined(CONFIG_PM) +#if defined(CONFIG_PREEMPT) && defined(CONFIG_FREEZER) ret = freeze_processes(); if (ret == 0) { struct task_struct *p, *q; |