[PATCH] ppc64: Fix oprofile when compiled as a module
authorAnton Blanchard <anton@samba.org>
Mon, 9 Jan 2006 04:41:31 +0000 (15:41 +1100)
committerPaul Mackerras <paulus@samba.org>
Mon, 9 Jan 2006 05:02:52 +0000 (16:02 +1100)
commit32a33994d513606d29e87e152deb67ba5f3c8e82
tree2966bbe85eb2880aacc1dba045af7a02cee0aa26
parent9a699aefa87cb0379a67741926820c9271d748a9
[PATCH] ppc64: Fix oprofile when compiled as a module

My recent changes to oprofile broke it when built as a module. Fix it by
using an enum instead of a function pointer. This way we still retain
the oprofile configuration in the cputable.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/cputable.c
arch/powerpc/oprofile/common.c
include/asm-powerpc/cputable.h