diff options
| author | freza <freza@NetBSD.org> | 2006-10-28 02:21:36 +0000 |
|---|---|---|
| committer | freza <freza@NetBSD.org> | 2006-10-28 02:21:36 +0000 |
| commit | ec743521b3cad2cd8a9e9ee0891b5367e87ef56f (patch) | |
| tree | 986e604a9bb06d18eb09e4f2540fb937398051e2 /sys | |
| parent | 8b52dc54b330e6f8433f80b0185c31287894e294 (diff) | |
Use curcpu() instead of referencing &cpu_info_primary (which is only
defined by a handful of ports).
OK by christos@
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/dev/splash/splash.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/splash/splash.c b/sys/dev/splash/splash.c index 66720e31ee1..ea99d3348c3 100644 --- a/sys/dev/splash/splash.c +++ b/sys/dev/splash/splash.c @@ -1,4 +1,4 @@ -/* $NetBSD: splash.c,v 1.1 2006/02/18 19:00:23 jmcneill Exp $ */ +/* $NetBSD: splash.c,v 1.2 2006/10/28 02:21:36 freza Exp $ */ /*- * Copyright (c) 2006 Jared D. McNeill <jmcneill@invisible.ca> @@ -34,7 +34,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: splash.c,v 1.1 2006/02/18 19:00:23 jmcneill Exp $"); +__KERNEL_RCSID(0, "$NetBSD: splash.c,v 1.2 2006/10/28 02:21:36 freza Exp $"); #include "opt_splash.h" @@ -409,7 +409,7 @@ splash_progress_update(struct splash_progress *sp) return; #ifdef __HAVE_CPU_COUNTER -#define UPDATE_INTERVAL (cpu_frequency(&cpu_info_primary) / 4) +#define UPDATE_INTERVAL (cpu_frequency(curcpu()) / 4) if (cpu_hascounter()) { uint64_t now; |
