MAXCPUS -> maxcpus

This commit is contained in:
ad 2010-04-25 11:49:22 +00:00
parent b445fb5178
commit caac34d32b
2 changed files with 8 additions and 8 deletions

View File

@ -1,7 +1,7 @@
/* $NetBSD: subr_spldebug.c,v 1.2 2009/11/24 17:28:32 dyoung Exp $ */
/* $NetBSD: subr_spldebug.c,v 1.3 2010/04/25 11:49:22 ad Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
* Copyright (c) 2009, 2010 The NetBSD Foundation, Inc.
* All rights reserved.
*
* This code is derived from software contributed to The NetBSD Foundation
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: subr_spldebug.c,v 1.2 2009/11/24 17:28:32 dyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: subr_spldebug.c,v 1.3 2010/04/25 11:49:22 ad Exp $");
#include <sys/param.h>
#include <sys/spldebug.h>
@ -79,7 +79,7 @@ spldebug_lower(int ipl)
cidx = cpu_index(curcpu());
KASSERT(cidx < MAXCPUS);
KASSERT(cidx < maxcpus);
splraise_depth[cidx] = 0;
spllowered_to[cidx] = ipl;
@ -104,7 +104,7 @@ spldebug_raise(int ipl)
cidx = cpu_index(curcpu());
KASSERT(cidx < MAXCPUS);
KASSERT(cidx < maxcpus);
if (splraise_depth[cidx] >= SPLRAISE_STACKLEN)
return;

View File

@ -1,4 +1,4 @@
/* $NetBSD: sys_pset.c,v 1.13 2009/10/02 21:56:28 elad Exp $ */
/* $NetBSD: sys_pset.c,v 1.14 2010/04/25 11:49:36 ad Exp $ */
/*
* Copyright (c) 2008, Mindaugas Rasiukevicius <rmind at NetBSD org>
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sys_pset.c,v 1.13 2009/10/02 21:56:28 elad Exp $");
__KERNEL_RCSID(0, "$NetBSD: sys_pset.c,v 1.14 2010/04/25 11:49:36 ad Exp $");
#include <sys/param.h>
@ -94,7 +94,7 @@ void
psets_init(void)
{
psets_max = max(MAXCPUS, 32);
psets_max = max(maxcpus, 32);
psets = kmem_zalloc(psets_max * sizeof(void *), KM_SLEEP);
psets_count = 0;