Name
struct prev_cputime —
snaphsot of system and user cputime
Synopsis
struct prev_cputime {
#ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE
cputime_t utime;
cputime_t stime;
raw_spinlock_t lock;
#endif
};
Members
- utime
time spent in user mode
- stime
time spent in system mode
- lock
protects the above two fields
Description
Stores previous user/system time values such that we can guarantee
monotonicity.