Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern MAXCPUS -> maxcpus
details: https://anonhg.NetBSD.org/src/rev/9a61dd8d0899
branches: trunk
changeset: 754266:9a61dd8d0899
user: ad <ad%NetBSD.org@localhost>
date: Sun Apr 25 11:49:22 2010 +0000
description:
MAXCPUS -> maxcpus
diffstat:
sys/kern/subr_spldebug.c | 10 +++++-----
sys/kern/sys_pset.c | 6 +++---
2 files changed, 8 insertions(+), 8 deletions(-)
diffs (67 lines):
diff -r 096ab347021c -r 9a61dd8d0899 sys/kern/subr_spldebug.c
--- a/sys/kern/subr_spldebug.c Sun Apr 25 11:49:04 2010 +0000
+++ b/sys/kern/subr_spldebug.c Sun Apr 25 11:49:22 2010 +0000
@@ -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 @@
cidx = cpu_index(curcpu());
- KASSERT(cidx < MAXCPUS);
+ KASSERT(cidx < maxcpus);
splraise_depth[cidx] = 0;
spllowered_to[cidx] = ipl;
@@ -104,7 +104,7 @@
cidx = cpu_index(curcpu());
- KASSERT(cidx < MAXCPUS);
+ KASSERT(cidx < maxcpus);
if (splraise_depth[cidx] >= SPLRAISE_STACKLEN)
return;
diff -r 096ab347021c -r 9a61dd8d0899 sys/kern/sys_pset.c
--- a/sys/kern/sys_pset.c Sun Apr 25 11:49:04 2010 +0000
+++ b/sys/kern/sys_pset.c Sun Apr 25 11:49:22 2010 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index