|
@@ -1460,8 +1460,11 @@ static long hcall_vphn(unsigned long cpu, __be32 *associativity)
|
|
long retbuf[PLPAR_HCALL9_BUFSIZE] = {0};
|
|
long retbuf[PLPAR_HCALL9_BUFSIZE] = {0};
|
|
u64 flags = 1;
|
|
u64 flags = 1;
|
|
int hwcpu = get_hard_smp_processor_id(cpu);
|
|
int hwcpu = get_hard_smp_processor_id(cpu);
|
|
|
|
+ int i;
|
|
|
|
|
|
rc = plpar_hcall9(H_HOME_NODE_ASSOCIATIVITY, retbuf, flags, hwcpu);
|
|
rc = plpar_hcall9(H_HOME_NODE_ASSOCIATIVITY, retbuf, flags, hwcpu);
|
|
|
|
+ for (i = 0; i < 6; i++)
|
|
|
|
+ retbuf[i] = cpu_to_be64(retbuf[i]);
|
|
vphn_unpack_associativity(retbuf, associativity);
|
|
vphn_unpack_associativity(retbuf, associativity);
|
|
|
|
|
|
return rc;
|
|
return rc;
|