remove unused CPUFLG_READY and CPU_NOTREADY() macro.
This commit is contained in:
parent
1c1a1efa3c
commit
8e196db30d
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cpu.c,v 1.229 2011/02/14 03:18:10 mrg Exp $ */
|
||||
/* $NetBSD: cpu.c,v 1.230 2011/02/15 09:05:14 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996
|
||||
@ -52,7 +52,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.229 2011/02/14 03:18:10 mrg Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cpu.c,v 1.230 2011/02/15 09:05:14 mrg Exp $");
|
||||
|
||||
#include "opt_multiprocessor.h"
|
||||
#include "opt_lockdebug.h"
|
||||
@ -555,12 +555,10 @@ cpu_boot_secondary_processors(void)
|
||||
continue;
|
||||
|
||||
printf(" cpu%d", cpi->ci_cpuid);
|
||||
cpi->flags |= CPUFLG_READY;
|
||||
cpu_ready_mask |= (1 << n);
|
||||
}
|
||||
|
||||
/* Mark the boot CPU as ready */
|
||||
cpuinfo.flags |= CPUFLG_READY;
|
||||
cpu_ready_mask |= (1 << 0);
|
||||
|
||||
/* Tell the other CPU's to start up. */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cpuvar.h,v 1.87 2011/02/14 03:18:10 mrg Exp $ */
|
||||
/* $NetBSD: cpuvar.h,v 1.88 2011/02/15 09:05:14 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1996 The NetBSD Foundation, Inc.
|
||||
@ -419,7 +419,6 @@ struct cpu_info {
|
||||
#define CPUFLG_HATCHED 0x1000 /* CPU is alive */
|
||||
#define CPUFLG_PAUSED 0x2000 /* CPU is paused */
|
||||
#define CPUFLG_GOTMSG 0x4000 /* CPU got an lev13 IPI */
|
||||
#define CPUFLG_READY 0x8000 /* CPU available for IPI */
|
||||
|
||||
|
||||
#define CPU_INFO_ITERATOR int
|
||||
@ -435,11 +434,6 @@ struct cpu_info {
|
||||
#define CPU_INFO_FOREACH(cii, cp) cii = 0, cp = curcpu(); cp != NULL; cp = NULL
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Useful macros.
|
||||
*/
|
||||
#define CPU_NOTREADY(cpi) ((cpi) == NULL || cpuinfo.mid == (cpi)->mid || \
|
||||
((cpi)->flags & CPUFLG_READY) == 0)
|
||||
|
||||
/*
|
||||
* Related function prototypes
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: intr.c,v 1.111 2011/01/27 06:24:59 mrg Exp $ */
|
||||
/* $NetBSD: intr.c,v 1.112 2011/02/15 09:05:14 mrg Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -41,7 +41,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.111 2011/01/27 06:24:59 mrg Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.112 2011/02/15 09:05:14 mrg Exp $");
|
||||
|
||||
#include "opt_multiprocessor.h"
|
||||
#include "opt_sparc_arch.h"
|
||||
@ -305,7 +305,6 @@ nmi_soft(struct trapframe *tf)
|
||||
case OPENPROM_MBX_WD:
|
||||
/* In case there's an xcall in progress (unlikely) */
|
||||
spl0();
|
||||
cpuinfo.flags &= ~CPUFLG_READY;
|
||||
#ifdef MULTIPROCESSOR
|
||||
cpu_ready_mask &= ~(1 << cpu_number());
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user