From 89076ac45add97d39554d2ef55a34dfd7d32c4f2 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 3 Feb 2004 18:46:42 -0800 Subject: [PATCH] [PATCH] oprofile, typo in alpha driver From: Philippe Elie Unless I miss something this look like a typo, one user reported to get error from the daemon: 'Unknown event for counter 1' (alpha ev6) and the behavior was better but not completly sane after trying this patch: he get spurious event for counter 1 when enabling only counter 0 but rarely now. No alpha box to test this. --- arch/alpha/oprofile/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/alpha/oprofile/common.c b/arch/alpha/oprofile/common.c index 3ce73d5779414..4ab14ed40cc89 100644 --- a/arch/alpha/oprofile/common.c +++ b/arch/alpha/oprofile/common.c @@ -57,7 +57,7 @@ op_axp_setup(void) /* Compute the mask of enabled counters. */ for (i = e = 0; i < model->num_counters; ++i) - if (ctr[0].enabled) + if (ctr[i].enabled) e |= 1 << i; reg.enable = e; -- 2.53.0