Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-or-later */
0002 /*
0003  * Common time accounting prototypes and such for all ppc machines.
0004  */
0005 
0006 #ifndef __POWERPC_ACCOUNTING_H
0007 #define __POWERPC_ACCOUNTING_H
0008 
0009 /* Stuff for accurate time accounting */
0010 struct cpu_accounting_data {
0011     /* Accumulated cputime values to flush on ticks*/
0012     unsigned long utime;
0013     unsigned long stime;
0014 #ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME
0015     unsigned long utime_scaled;
0016     unsigned long stime_scaled;
0017 #endif
0018     unsigned long gtime;
0019     unsigned long hardirq_time;
0020     unsigned long softirq_time;
0021     unsigned long steal_time;
0022     unsigned long idle_time;
0023     /* Internal counters */
0024     unsigned long starttime;    /* TB value snapshot */
0025     unsigned long starttime_user;   /* TB value on exit to usermode */
0026 #ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME
0027     unsigned long startspurr;   /* SPURR value snapshot */
0028     unsigned long utime_sspurr; /* ->user_time when ->startspurr set */
0029 #endif
0030 };
0031 
0032 #endif