hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/arch/powerpc/include/asm/accounting.h
....@@ -1,10 +1,6 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * 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.
84 */
95
106 #ifndef __POWERPC_ACCOUNTING_H
....@@ -15,8 +11,10 @@
1511 /* Accumulated cputime values to flush on ticks*/
1612 unsigned long utime;
1713 unsigned long stime;
14
+#ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME
1815 unsigned long utime_scaled;
1916 unsigned long stime_scaled;
17
+#endif
2018 unsigned long gtime;
2119 unsigned long hardirq_time;
2220 unsigned long softirq_time;
....@@ -25,8 +23,10 @@
2523 /* Internal counters */
2624 unsigned long starttime; /* TB value snapshot */
2725 unsigned long starttime_user; /* TB value on exit to usermode */
26
+#ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME
2827 unsigned long startspurr; /* SPURR value snapshot */
2928 unsigned long utime_sspurr; /* ->user_time when ->startspurr set */
29
+#endif
3030 };
3131
3232 #endif