summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/xmon
diff options
context:
space:
mode:
authorChristophe Leroy <christophe.leroy@c-s.fr>2016-05-17 02:33:46 -0400
committerScott Wood <oss@buserror.net>2016-07-09 02:43:50 -0400
commitc223c90386bc2306510e0ceacd768a0123ff2a2f (patch)
tree520a7bc88a7e36bbd0615cc5a035337a36729fb8 /arch/powerpc/xmon
parent1afbf61750364864adf6a17818c5bbbea4dea531 (diff)
powerpc32: provide VIRT_CPU_ACCOUNTING
This patch provides VIRT_CPU_ACCOUTING to PPC32 architecture. PPC32 doesn't have the PACA structure, so we use the task_info structure to store the accounting data. In order to reuse on PPC32 the PPC64 functions, all u64 data has been replaced by 'unsigned long' so that it is u32 on PPC32 and u64 on PPC64 Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr> Signed-off-by: Scott Wood <oss@buserror.net>
Diffstat (limited to 'arch/powerpc/xmon')
-rw-r--r--arch/powerpc/xmon/xmon.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index c5e155108be5..4f7c29d87ec3 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -2213,13 +2213,13 @@ static void dump_one_paca(int cpu)
2213 DUMP(p, subcore_sibling_mask, "x"); 2213 DUMP(p, subcore_sibling_mask, "x");
2214#endif 2214#endif
2215 2215
2216 DUMP(p, user_time, "llx"); 2216 DUMP(p, accounting.user_time, "llx");
2217 DUMP(p, system_time, "llx"); 2217 DUMP(p, accounting.system_time, "llx");
2218 DUMP(p, user_time_scaled, "llx"); 2218 DUMP(p, accounting.user_time_scaled, "llx");
2219 DUMP(p, starttime, "llx"); 2219 DUMP(p, accounting.starttime, "llx");
2220 DUMP(p, starttime_user, "llx"); 2220 DUMP(p, accounting.starttime_user, "llx");
2221 DUMP(p, startspurr, "llx"); 2221 DUMP(p, accounting.startspurr, "llx");
2222 DUMP(p, utime_sspurr, "llx"); 2222 DUMP(p, accounting.utime_sspurr, "llx");
2223 DUMP(p, stolen_time, "llx"); 2223 DUMP(p, stolen_time, "llx");
2224#undef DUMP 2224#undef DUMP
2225 2225