~kris/9p

9hist

b9ce898c6f61203b4987c4e983acef9162cbc323 — David du Colombier 23 years ago 004c679
Plan 9 from Bell Labs 2002-10-10
2 files changed, 4 insertions(+), 3 deletions(-)

M pc/main.c
M port/proc.c
M pc/main.c => pc/main.c +1 -0
@@ 140,6 140,7 @@ machinit(void)
	m->machno = machno;
	m->pdb = pdb;
	m->gdt = gdt;
	m->perf.period = 1;

	/*
	 * For polled uart output at boot, need

M port/proc.c => port/proc.c +3 -3
@@ 1251,9 1251,9 @@ accounttime(void)
	n = perfticks();
	per = n - m->perf.last;
	m->perf.last = n;
	if(per == 0)
		per = 1;
	m->perf.period = (m->perf.period*(HZ-1)+per)/HZ;
	per = (m->perf.period*(HZ-1) + per)/HZ;
	if(per != 0)
		m->perf.period = per;

	m->perf.avg_inidle = (m->perf.avg_inidle*(HZ-1)+m->perf.inidle)/HZ;
	m->perf.inidle = 0;