PERFORCE change 147468 for review
Marko Zec
zec at FreeBSD.org
Fri Aug 15 16:24:39 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=147468
Change 147468 by zec at zec_tpx32 on 2008/08/15 16:24:23
Attempt to unbreak build.
Affected files ...
.. //depot/projects/vimage-devel/src/sys/kern/tty_info.c#2 edit
Differences ...
==== //depot/projects/vimage-devel/src/sys/kern/tty_info.c#2 (text+ko) ====
@@ -43,6 +43,8 @@
#include <sys/cdefs.h>
__FBSDID("$FreeBSD: src/sys/kern/tty_info.c,v 1.1 2008/07/25 14:31:00 ed Exp $");
+#include "opt_vimage.h"
+
#include <sys/param.h>
#include <sys/lock.h>
#include <sys/mutex.h>
@@ -51,6 +53,7 @@
#include <sys/sched.h>
#include <sys/systm.h>
#include <sys/tty.h>
+#include <sys/vimage.h>
#include <vm/vm.h>
#include <vm/pmap.h>
@@ -213,6 +216,7 @@
void
ttyinfo(struct tty *tp)
{
+ INIT_VPROCG(TD_TO_VPROCG(curthread)); /* XXX */
struct timeval utime, stime;
struct proc *p, *pick;
struct thread *td, *picktd;
@@ -227,7 +231,7 @@
return;
/* Print load average. */
- load = (averunnable.ldavg[0] * 100 + FSCALE / 2) >> FSHIFT;
+ load = (V_averunnable.ldavg[0] * 100 + FSCALE / 2) >> FSHIFT;
ttyprintf(tp, "load: %d.%02d ", load / 100, load % 100);
/*
More information about the p4-projects
mailing list