1<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>struct prev_cputime</title><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html" title="Linux Device Drivers"><link rel="up" href="ch01s03.html" title="Delaying, scheduling, and timer routines"><link rel="prev" href="ch01s03.html" title="Delaying, scheduling, and timer routines"><link rel="next" href="API-struct-task-cputime.html" title="struct task_cputime"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center"><span class="phrase">struct prev_cputime</span></th></tr><tr><td width="20%" align="left"><a accesskey="p" href="ch01s03.html">Prev</a> </td><th width="60%" align="center">Delaying, scheduling, and timer routines</th><td width="20%" align="right"> <a accesskey="n" href="API-struct-task-cputime.html">Next</a></td></tr></table><hr></div><div class="refentry"><a name="API-struct-prev-cputime"></a><div class="titlepage"></div><div class="refnamediv"><h2>Name</h2><p>struct prev_cputime — 2 snaphsot of system and user cputime 3 </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="programlisting"> 4struct prev_cputime { 5#ifndef CONFIG_VIRT_CPU_ACCOUNTING_NATIVE 6 cputime_t utime; 7 cputime_t stime; 8 raw_spinlock_t lock; 9#endif 10}; </pre></div><div class="refsect1"><a name="id-1.3.4.2.5"></a><h2>Members</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term">utime</span></dt><dd><p> 11time spent in user mode 12 </p></dd><dt><span class="term">stime</span></dt><dd><p> 13time spent in system mode 14 </p></dd><dt><span class="term">lock</span></dt><dd><p> 15protects the above two fields 16 </p></dd></dl></div></div><div class="refsect1"><a name="id-1.3.4.2.6"></a><h2>Description</h2><p> 17 Stores previous user/system time values such that we can guarantee 18 monotonicity. 19</p></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="ch01s03.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="ch01s03.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="API-struct-task-cputime.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Delaying, scheduling, and timer routines </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> <span class="phrase">struct task_cputime</span></td></tr></table></div></body></html> 20