projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
788b5f0
)
[IA64] correctly count CPU objects in the ia64/sn hwperf interface
author
Mark Goodwin
<markgw@sgi.com>
Fri, 13 Jul 2007 01:59:37 +0000
(11:59 +1000)
committer
Tony Luck
<tony.luck@intel.com>
Fri, 13 Jul 2007 23:09:46 +0000
(16:09 -0700)
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>
Signed-off-by: Tony Luck <tony.luck@intel.com>
arch/ia64/sn/kernel/sn2/sn_hwperf.c
patch
|
blob
|
history
diff --git
a/arch/ia64/sn/kernel/sn2/sn_hwperf.c
b/arch/ia64/sn/kernel/sn2/sn_hwperf.c
index 6da9854751cd9be20d0035fa32b037f6ef6590c0..df8d5bed6119f210f7e5d2b234654536000a7168 100644
(file)
--- 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);