Use curcpu() instead of referencing &cpu_info_primary (which is only
defined by a handful of ports). OK by christos@
This commit is contained in:
parent
8b52dc54b3
commit
ec743521b3
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue