Merge tag 'pci-v4.8-fixes-1' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
[linux-2.6-block.git] / arch / powerpc / include / asm / accounting.h
CommitLineData
c223c903
CL
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
10#ifndef __POWERPC_ACCOUNTING_H
11#define __POWERPC_ACCOUNTING_H
12
13/* Stuff for accurate time accounting */
14struct cpu_accounting_data {
15 unsigned long user_time; /* accumulated usermode TB ticks */
16 unsigned long system_time; /* accumulated system TB ticks */
17 unsigned long user_time_scaled; /* accumulated usermode SPURR ticks */
18 unsigned long starttime; /* TB value snapshot */
19 unsigned long starttime_user; /* TB value on exit to usermode */
20 unsigned long startspurr; /* SPURR value snapshot */
21 unsigned long utime_sspurr; /* ->user_time when ->startspurr set */
22};
23
24#endif