1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Common time accounting prototypes and such for all ppc machines.
6 #ifndef __POWERPC_ACCOUNTING_H
7 #define __POWERPC_ACCOUNTING_H
9 /* Stuff for accurate time accounting */
10 struct cpu_accounting_data {
11 /* Accumulated cputime values to flush on ticks*/
14 #ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME
15 unsigned long utime_scaled;
16 unsigned long stime_scaled;
19 unsigned long hardirq_time;
20 unsigned long softirq_time;
21 unsigned long steal_time;
22 unsigned long idle_time;
23 /* Internal counters */
24 unsigned long starttime; /* TB value snapshot */
25 unsigned long starttime_user; /* TB value on exit to usermode */
26 #ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME
27 unsigned long startspurr; /* SPURR value snapshot */
28 unsigned long utime_sspurr; /* ->user_time when ->startspurr set */