.. | .. |
---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
---|
1 | 2 | /* |
---|
2 | 3 | * 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 | 4 | */ |
---|
9 | 5 | |
---|
10 | 6 | #ifndef __POWERPC_ACCOUNTING_H |
---|
.. | .. |
---|
15 | 11 | /* Accumulated cputime values to flush on ticks*/ |
---|
16 | 12 | unsigned long utime; |
---|
17 | 13 | unsigned long stime; |
---|
| 14 | +#ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME |
---|
18 | 15 | unsigned long utime_scaled; |
---|
19 | 16 | unsigned long stime_scaled; |
---|
| 17 | +#endif |
---|
20 | 18 | unsigned long gtime; |
---|
21 | 19 | unsigned long hardirq_time; |
---|
22 | 20 | unsigned long softirq_time; |
---|
.. | .. |
---|
25 | 23 | /* Internal counters */ |
---|
26 | 24 | unsigned long starttime; /* TB value snapshot */ |
---|
27 | 25 | unsigned long starttime_user; /* TB value on exit to usermode */ |
---|
| 26 | +#ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME |
---|
28 | 27 | unsigned long startspurr; /* SPURR value snapshot */ |
---|
29 | 28 | unsigned long utime_sspurr; /* ->user_time when ->startspurr set */ |
---|
| 29 | +#endif |
---|
30 | 30 | }; |
---|
31 | 31 | |
---|
32 | 32 | #endif |
---|