From ec743521b3cad2cd8a9e9ee0891b5367e87ef56f Mon Sep 17 00:00:00 2001 From: freza Date: Sat, 28 Oct 2006 02:21:36 +0000 Subject: Use curcpu() instead of referencing &cpu_info_primary (which is only defined by a handful of ports). OK by christos@ --- sys/dev/splash/splash.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/dev') 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 @@ -34,7 +34,7 @@ */ #include -__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; -- cgit