Date: Fri, 15 Aug 2008 16:24:36 GMT From: Marko Zec <zec@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 147468 for review Message-ID: <200808151624.m7FGOa7u010551@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=147468 Change 147468 by zec@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); /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200808151624.m7FGOa7u010551>