accounting.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * 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. */
  9. #ifndef __POWERPC_ACCOUNTING_H
  10. #define __POWERPC_ACCOUNTING_H
  11. /* Stuff for accurate time accounting */
  12. struct cpu_accounting_data {
  13. /* Accumulated cputime values to flush on ticks*/
  14. unsigned long utime;
  15. unsigned long stime;
  16. #ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME
  17. unsigned long utime_scaled;
  18. unsigned long stime_scaled;
  19. #endif
  20. unsigned long gtime;
  21. unsigned long hardirq_time;
  22. unsigned long softirq_time;
  23. unsigned long steal_time;
  24. unsigned long idle_time;
  25. /* Internal counters */
  26. unsigned long starttime; /* TB value snapshot */
  27. unsigned long starttime_user; /* TB value on exit to usermode */
  28. #ifdef CONFIG_ARCH_HAS_SCALED_CPUTIME
  29. unsigned long startspurr; /* SPURR value snapshot */
  30. unsigned long utime_sspurr; /* ->user_time when ->startspurr set */
  31. #endif
  32. };
  33. #endif