[PATCH] oprofile: Fix unnecessary cleverness
commit0c6856f702732d3cfc33eb59303e998ad6961de8
authorMarkus Armbruster <armbru@redhat.com>
Mon, 26 Jun 2006 07:24:34 +0000 (26 00:24 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:17 +0000 (26 09:58 -0700)
tree98d3c76586f6e63b4dc43a0f763e9b6a7cc4a984
parent57136ca6d57359c7f21a9bbb4a5a0a61eeb53f2b
[PATCH] oprofile: Fix unnecessary cleverness

nmi_create_files() in arch/i386/oprofile/nmi_int.c depends on
model->num_counters (number of performance counters) being less than 10.
While this is currently the case, it's too clever by half.

Other archs aren't quite as clever: they assume 100.  I suggest to
normalize them all to 1000.

Cc: Philippe Elie <phil.el@wanadoo.fr>
Cc: John Levon <levon@movementarian.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/alpha/oprofile/common.c
arch/i386/oprofile/nmi_int.c
arch/mips/oprofile/common.c
arch/powerpc/oprofile/common.c
arch/sh/oprofile/op_model_sh7750.c