diff options
Diffstat (limited to 'arch/powerpc/kernel/lparcfg.c')
-rw-r--r-- | arch/powerpc/kernel/lparcfg.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/arch/powerpc/kernel/lparcfg.c b/arch/powerpc/kernel/lparcfg.c index e6024c2ed5c7..0204089ebdd4 100644 --- a/arch/powerpc/kernel/lparcfg.c +++ b/arch/powerpc/kernel/lparcfg.c | |||
@@ -387,8 +387,8 @@ static void pseries_cmo_data(struct seq_file *m) | |||
387 | return; | 387 | return; |
388 | 388 | ||
389 | for_each_possible_cpu(cpu) { | 389 | for_each_possible_cpu(cpu) { |
390 | cmo_faults += lppaca_of(cpu).cmo_faults; | 390 | cmo_faults += be64_to_cpu(lppaca_of(cpu).cmo_faults); |
391 | cmo_fault_time += lppaca_of(cpu).cmo_fault_time; | 391 | cmo_fault_time += be64_to_cpu(lppaca_of(cpu).cmo_fault_time); |
392 | } | 392 | } |
393 | 393 | ||
394 | seq_printf(m, "cmo_faults=%lu\n", cmo_faults); | 394 | seq_printf(m, "cmo_faults=%lu\n", cmo_faults); |
@@ -406,8 +406,9 @@ static void splpar_dispatch_data(struct seq_file *m) | |||
406 | unsigned long dispatch_dispersions = 0; | 406 | unsigned long dispatch_dispersions = 0; |
407 | 407 | ||
408 | for_each_possible_cpu(cpu) { | 408 | for_each_possible_cpu(cpu) { |
409 | dispatches += lppaca_of(cpu).yield_count; | 409 | dispatches += be32_to_cpu(lppaca_of(cpu).yield_count); |
410 | dispatch_dispersions += lppaca_of(cpu).dispersion_count; | 410 | dispatch_dispersions += |
411 | be32_to_cpu(lppaca_of(cpu).dispersion_count); | ||
411 | } | 412 | } |
412 | 413 | ||
413 | seq_printf(m, "dispatches=%lu\n", dispatches); | 414 | seq_printf(m, "dispatches=%lu\n", dispatches); |