1 /*
2  * Common time accounting prototypes and such for all ppc machines.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version
7  * 2 of the License, or (at your option) any later version.
8  */
9 
10 #ifndef __POWERPC_ACCOUNTING_H
11 #define __POWERPC_ACCOUNTING_H
12 
13 /* Stuff for accurate time accounting */
14 struct cpu_accounting_data {
15 	/* Accumulated cputime values to flush on ticks*/
16 	unsigned long utime;
17 	unsigned long stime;
18 #ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME
19 	unsigned long utime_scaled;
20 	unsigned long stime_scaled;
21 #endif
22 	unsigned long gtime;
23 	unsigned long hardirq_time;
24 	unsigned long softirq_time;
25 	unsigned long steal_time;
26 	unsigned long idle_time;
27 	/* Internal counters */
28 	unsigned long starttime;	/* TB value snapshot */
29 	unsigned long starttime_user;	/* TB value on exit to usermode */
30 #ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME
31 	unsigned long startspurr;	/* SPURR value snapshot */
32 	unsigned long utime_sspurr;	/* ->user_time when ->startspurr set */
33 #endif
34 };
35 
36 #endif
37