From: Mark Goodwin <markgw@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [patch] correctly count CPU objects in the ia64/sn hwperf interface
Date: Fri, 13 Jul 2007 01:59:37 +0000 [thread overview]
Message-ID: <4696DC89.2090706@sgi.com> (raw)
[-- 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);
reply other threads:[~2007-07-13 1:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4696DC89.2090706@sgi.com \
--to=markgw@sgi.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.