summaryrefslogtreecommitdiffstats
path: root/sys/i386/include
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1998-05-28 09:30:28 +0000
committerphk <phk@FreeBSD.org>1998-05-28 09:30:28 +0000
commitd3d65c6b2e376ac074f3ca386b6f5b70ea37636f (patch)
tree6beef0d8c93f6063bf0b9870b87a8c1ef8267cd4 /sys/i386/include
parent3654f28d394a609d42e7000c62963c45e3bba3db (diff)
downloadFreeBSD-src-d3d65c6b2e376ac074f3ca386b6f5b70ea37636f.zip
FreeBSD-src-d3d65c6b2e376ac074f3ca386b6f5b70ea37636f.tar.gz
Some cleanups related to timecounters and weird ifdefs in <sys/time.h>.
Clean up (or if antipodic: down) some of the msgbuf stuff. Use an inline function rather than a macro for timecounter delta. Maintain process "on-cpu" time as 64 bits of microseconds to avoid needless second rollover overhead. Avoid calling microuptime the second time in mi_switch() if we do not pass through _idle in cpu_switch() This should reduce our context-switch overhead a bit, in particular on pre-P5 and SMP systems. WARNING: Programs which muck about with struct proc in userland will have to be fixed. Reviewed, but found imperfect by: bde
Diffstat (limited to 'sys/i386/include')
-rw-r--r--sys/i386/include/globaldata.h3
-rw-r--r--sys/i386/include/pcpu.h3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/i386/include/globaldata.h b/sys/i386/include/globaldata.h
index af8e806..c6c5a17 100644
--- a/sys/i386/include/globaldata.h
+++ b/sys/i386/include/globaldata.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: globaldata.h,v 1.3 1998/05/17 18:53:07 tegge Exp $
+ * $Id: globaldata.h,v 1.4 1998/05/17 23:08:02 tegge Exp $
*/
/*
@@ -43,6 +43,7 @@ struct globaldata {
struct proc *npxproc;
struct pcb *curpcb;
struct i386tss common_tss;
+ struct timeval switchtime;
#ifdef VM86
struct segment_descriptor common_tssd;
u_int private_tss;
diff --git a/sys/i386/include/pcpu.h b/sys/i386/include/pcpu.h
index af8e806..c6c5a17 100644
--- a/sys/i386/include/pcpu.h
+++ b/sys/i386/include/pcpu.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: globaldata.h,v 1.3 1998/05/17 18:53:07 tegge Exp $
+ * $Id: globaldata.h,v 1.4 1998/05/17 23:08:02 tegge Exp $
*/
/*
@@ -43,6 +43,7 @@ struct globaldata {
struct proc *npxproc;
struct pcb *curpcb;
struct i386tss common_tss;
+ struct timeval switchtime;
#ifdef VM86
struct segment_descriptor common_tssd;
u_int private_tss;
OpenPOWER on IntegriCloud