]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] oprofile: Fix unnecessary cleverness
authorMarkus Armbruster <armbru@redhat.com>
Mon, 26 Jun 2006 07:24:34 +0000 (00:24 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Mon, 26 Jun 2006 16:58:17 +0000 (09:58 -0700)
commitc8fa4099bb6c1949bbec24311e94865db80a993b
tree98d3c76586f6e63b4dc43a0f763e9b6a7cc4a984
parent23331e3f05c79a2a4388b9c0d7f0d9e5a95562af
[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