mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-11-03 17:27:25 -05:00
[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]>
This commit is contained in:
parent
788b5f0834
commit
83e12a076e
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue