Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=83e12a076e3587d60cfbe65a761ef54e14a264e3 Commit: 83e12a076e3587d60cfbe65a761ef54e14a264e3 Parent: 788b5f0834ea1566b931cf1ce8424027b3c4caf0 Author: Mark Goodwin <[EMAIL PROTECTED]> AuthorDate: Fri Jul 13 11:59:37 2007 +1000 Committer: Tony Luck <[EMAIL PROTECTED]> CommitDate: Fri Jul 13 16:09:46 2007 -0700
[IA64] correctly count CPU objects in the ia64/sn hwperf interface Correctly count CPU objects for SGI ia64/sn hwperf interface Signed-off-by: Mark Goodwin <[EMAIL PROTECTED]> Signed-off-by: Jack Steiner <[EMAIL PROTECTED]> Signed-off-by: Tony Luck <[EMAIL PROTECTED]> --- arch/ia64/sn/kernel/sn2/sn_hwperf.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/arch/ia64/sn/kernel/sn2/sn_hwperf.c b/arch/ia64/sn/kernel/sn2/sn_hwperf.c index 6da9854..df8d5be 100644 --- a/arch/ia64/sn/kernel/sn2/sn_hwperf.c +++ b/arch/ia64/sn/kernel/sn2/sn_hwperf.c @@ -750,9 +750,10 @@ sn_hwperf_ioctl(struct inode *in, struct file *fp, u32 op, u64 arg) 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); - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html