Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/alpha Synch cpu_hatch() with the i386:
details: https://anonhg.NetBSD.org/src/rev/f8b756385b80
branches: trunk
changeset: 499412:f8b756385b80
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Nov 19 19:18:19 2000 +0000
description:
Synch cpu_hatch() with the i386:
- print the same style message when the CPU is running.
- Initialize ci->ci_schedstate.spc_runtime on the CPU.
diffstat:
sys/arch/alpha/alpha/cpu.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (32 lines):
diff -r 3812848e623b -r f8b756385b80 sys/arch/alpha/alpha/cpu.c
--- a/sys/arch/alpha/alpha/cpu.c Sun Nov 19 19:16:44 2000 +0000
+++ b/sys/arch/alpha/alpha/cpu.c Sun Nov 19 19:18:19 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.c,v 1.58 2000/11/18 19:25:35 thorpej Exp $ */
+/* $NetBSD: cpu.c,v 1.59 2000/11/19 19:18:19 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000 The NetBSD Foundation, Inc.
@@ -66,7 +66,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.58 2000/11/18 19:25:35 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.59 2000/11/19 19:18:19 thorpej Exp $");
#include "opt_multiprocessor.h"
@@ -557,9 +557,12 @@
trap_init();
/* Yahoo! We're running kernel code! Announce it! */
- printf("%s: processor ID %lu running\n",
+ printf("%s: CPU %lu running\n",
ci->ci_softc->sc_dev.dv_xname, cpu_number());
atomic_setbits_ulong(&cpus_running, cpumask);
+
+ /* Initialize our base "runtime". */
+ microtime(&ci->ci_schedstate.spc_runtime);
}
int
Home |
Main Index |
Thread Index |
Old Index