Commit | Line | Data |
---|---|---|
2874c5fd | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
c223c903 CL |
2 | /* |
3 | * Common time accounting prototypes and such for all ppc machines. | |
c223c903 CL |
4 | */ |
5 | ||
6 | #ifndef __POWERPC_ACCOUNTING_H | |
7 | #define __POWERPC_ACCOUNTING_H | |
8 | ||
9 | /* Stuff for accurate time accounting */ | |
10 | struct cpu_accounting_data { | |
8c8b73c4 FW |
11 | /* Accumulated cputime values to flush on ticks*/ |
12 | unsigned long utime; | |
13 | unsigned long stime; | |
abcff86d | 14 | #ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME |
8c8b73c4 FW |
15 | unsigned long utime_scaled; |
16 | unsigned long stime_scaled; | |
abcff86d | 17 | #endif |
8c8b73c4 FW |
18 | unsigned long gtime; |
19 | unsigned long hardirq_time; | |
20 | unsigned long softirq_time; | |
21 | unsigned long steal_time; | |
22 | unsigned long idle_time; | |
23 | /* Internal counters */ | |
c223c903 CL |
24 | unsigned long starttime; /* TB value snapshot */ |
25 | unsigned long starttime_user; /* TB value on exit to usermode */ | |
abcff86d | 26 | #ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME |
c223c903 CL |
27 | unsigned long startspurr; /* SPURR value snapshot */ |
28 | unsigned long utime_sspurr; /* ->user_time when ->startspurr set */ | |
abcff86d | 29 | #endif |
c223c903 CL |
30 | }; |
31 | ||
32 | #endif |