]> git.hungrycats.org Git - linux/commitdiff
[PATCH] oprofile, typo in alpha driver
authorAndrew Morton <akpm@osdl.org>
Wed, 4 Feb 2004 02:46:42 +0000 (18:46 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 4 Feb 2004 02:46:42 +0000 (18:46 -0800)
From: Philippe Elie <phil.el@wanadoo.fr>

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

index 3ce73d57794146c44a15ec639937b6198bf8b58c..4ab14ed40cc89639eafc3e9f26575ed793d08106 100644 (file)
@@ -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;