Allow stack tracing to work when sampling on timer is forced using the timer=1 boot option. Reported by Akinobu Mita. Signed-off-by: Greg Banks --- oprof.c | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) Index: linux/drivers/oprofile/oprof.c =================================================================== --- linux.orig/drivers/oprofile/oprof.c 2004-12-04 19:43:37.%N +1100 +++ linux/drivers/oprofile/oprof.c 2004-12-09 09:25:02.%N +1100 @@ -155,13 +155,11 @@ static int __init oprofile_init(void) { int err = 0; - /* this is our fallback case */ - oprofile_timer_init(&oprofile_ops); + oprofile_arch_init(&oprofile_ops); if (timer) { printk(KERN_INFO "oprofile: using timer interrupt.\n"); - } else { - oprofile_arch_init(&oprofile_ops); + oprofile_timer_init(&oprofile_ops); } err = oprofilefs_register();