]> git.baikalelectronics.ru Git - kernel.git/commit
kprobes: check CONFIG_FREEZER instead of CONFIG_PM
authorMasami Hiramatsu <mhiramat@redhat.com>
Tue, 6 Jan 2009 20:15:32 +0000 (21:15 +0100)
committerLen Brown <len.brown@intel.com>
Fri, 16 Jan 2009 19:32:17 +0000 (14:32 -0500)
commit1121a7736ec32db9eb27bd6c3786239a7c284857
tree9a246d76a019318f658c3db7567664cffb5f2824
parent3984c1a68c13418767e4a9ff549813f3e0986a3c
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>
arch/ia64/kernel/kprobes.c
arch/x86/kernel/kprobes.c
kernel/kprobes.c