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>
This commit is contained in:

committed by
Scott Wood

parent
1afbf61750
commit
c223c90386
@@ -2213,13 +2213,13 @@ static void dump_one_paca(int cpu)
|
||||
DUMP(p, subcore_sibling_mask, "x");
|
||||
#endif
|
||||
|
||||
DUMP(p, user_time, "llx");
|
||||
DUMP(p, system_time, "llx");
|
||||
DUMP(p, user_time_scaled, "llx");
|
||||
DUMP(p, starttime, "llx");
|
||||
DUMP(p, starttime_user, "llx");
|
||||
DUMP(p, startspurr, "llx");
|
||||
DUMP(p, utime_sspurr, "llx");
|
||||
DUMP(p, accounting.user_time, "llx");
|
||||
DUMP(p, accounting.system_time, "llx");
|
||||
DUMP(p, accounting.user_time_scaled, "llx");
|
||||
DUMP(p, accounting.starttime, "llx");
|
||||
DUMP(p, accounting.starttime_user, "llx");
|
||||
DUMP(p, accounting.startspurr, "llx");
|
||||
DUMP(p, accounting.utime_sspurr, "llx");
|
||||
DUMP(p, stolen_time, "llx");
|
||||
#undef DUMP
|
||||
|
||||
|
Reference in New Issue
Block a user