summaryrefslogtreecommitdiff
path: root/sys/arch/mips64/include/cpu.h
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2010-02-28 17:23:26 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2010-02-28 17:23:26 +0000
commit7a6bbf6ce25b030e97ab419c7ed559af5b797d07 (patch)
tree1a4599b0be3682880892308b9ac1472460acef8d /sys/arch/mips64/include/cpu.h
parented08b3f5b8e2ae1799e826b3b443f0291e06fe88 (diff)
Add an explicit `delay constant' member to struct cpu_info, so that it can
be decoupled from the nominal processor speed. While there, make sure delay() gets a proper delay constant if invoked before cpu0 attaches (how could I miss that when introducing struct cpu_hwinfo?!?)
Diffstat (limited to 'sys/arch/mips64/include/cpu.h')
-rw-r--r--sys/arch/mips64/include/cpu.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/arch/mips64/include/cpu.h b/sys/arch/mips64/include/cpu.h
index 51e50b8383a..634b772aa98 100644
--- a/sys/arch/mips64/include/cpu.h
+++ b/sys/arch/mips64/include/cpu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cpu.h,v 1.55 2010/01/18 16:59:22 miod Exp $ */
+/* $OpenBSD: cpu.h,v 1.56 2010/02/28 17:23:23 miod Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -378,6 +378,7 @@ struct cpu_info {
struct proc *ci_curproc;
struct user *ci_curprocpaddr;
struct proc *ci_fpuproc; /* pointer to last proc to use FP */
+ uint32_t ci_delayconst;
struct cpu_hwinfo
ci_hw;