public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] correctly count CPU objects in the ia64/sn hwperf interface
@ 2007-07-13  1:59 Mark Goodwin
  0 siblings, 0 replies; only message in thread
From: Mark Goodwin @ 2007-07-13  1:59 UTC (permalink / raw)
  To: linux-ia64

[-- Attachment #1: Type: text/plain, Size: 110 bytes --]

Hi Tony,

please accept this patch to fix a logic error in the SGI ia64/sn
hwperf interface.

Thanks
-- Mark


[-- Attachment #2: sn_hwperf_cpuinfo_fix.diff --]
[-- Type: text/plain, Size: 628 bytes --]

Correctly count CPU objects for SGI ia64/sn hwperf interface

Signed-off-by: Mark Goodwin <markgw@sgi.com>
Signed-off-by: Jack Steiner <steiner@sgi.com>

--- a/arch/ia64/sn/kernel/sn2/sn_hwperf.c	2007-07-03 20:48:17.000000000 +1000
+++ b/arch/ia64/sn/kernel/sn2/sn_hwperf.c	2007-07-03 16:04:35.472855575 +1000
@@ -750,9 +750,10 @@
 			goto error;
 		} else
 		if ((r = sn_hwperf_enum_objects(&nobj, &objs)) == 0) {
+			int cpuobj_index = 0;
+
 			memset(p, 0, a.sz);
 			for (i = 0; i < nobj; i++) {
-				int cpuobj_index = 0;
 				if (!SN_HWPERF_IS_NODE(objs + i))
 					continue;
 				node = sn_hwperf_obj_to_cnode(objs + i);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-07-13  1:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-13  1:59 [patch] correctly count CPU objects in the ia64/sn hwperf interface Mark Goodwin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox