Spell PMAP_TLB_NEED_SHOOTDOWN correctly

This commit is contained in:
skrll 2016-07-14 05:00:51 +00:00
parent 7f64d56466
commit ccd0ac494d
3 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.333 2016/07/12 15:40:53 skrll Exp $ */
/* $NetBSD: pmap.c,v 1.334 2016/07/14 05:00:51 skrll Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@ -217,7 +217,7 @@
#include <arm/locore.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.333 2016/07/12 15:40:53 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.334 2016/07/14 05:00:51 skrll Exp $");
//#define PMAP_DEBUG
#ifdef PMAP_DEBUG
@ -7857,7 +7857,7 @@ pmap_md_tlb_info_attach(struct pmap_tlb_info *ti, struct cpu_info *ci)
int
pic_ipi_shootdown(void *arg)
{
#if PMAP_NEED_TLB_SHOOTDOWN
#if PMAP_TLB_NEED_SHOOTDOWN
pmap_tlb_shootdown_process();
#endif
return 1;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.h,v 1.143 2015/11/11 17:54:17 skrll Exp $ */
/* $NetBSD: pmap.h,v 1.144 2016/07/14 05:00:51 skrll Exp $ */
/*
* Copyright (c) 2002, 2003 Wasabi Systems, Inc.
@ -87,7 +87,7 @@
#define PMAP_TLB_MAX 1
#define PMAP_TLB_HWPAGEWALKER 1
#if PMAP_TLB_MAX > 1
#define PMAP_NEED_TLB_SHOOTDOWN 1
#define PMAP_TLB_NEED_SHOOTDOWN 1
#endif
#define PMAP_TLB_FLUSH_ASID_ON_RESET (arm_has_tlbiasid_p)
#define PMAP_TLB_NUM_PIDS 256

View File

@ -1,4 +1,4 @@
/* $NetBSD: pmap.c,v 1.17 2016/07/14 04:51:47 skrll Exp $ */
/* $NetBSD: pmap.c,v 1.18 2016/07/14 05:00:51 skrll Exp $ */
/*-
* Copyright (c) 1998, 2001 The NetBSD Foundation, Inc.
@ -67,7 +67,7 @@
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.17 2016/07/14 04:51:47 skrll Exp $");
__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.18 2016/07/14 05:00:51 skrll Exp $");
/*
* Manages physical address maps.
@ -845,7 +845,7 @@ pmap_update(struct pmap *pmap)
PMAP_COUNT(update);
kpreempt_disable();
#if defined(MULTIPROCESSOR) && defined(PMAP_NEED_TLB_SHOOTDOWN)
#if defined(MULTIPROCESSOR) && defined(PMAP_TLB_NEED_SHOOTDOWN)
u_int pending = atomic_swap_uint(&pmap->pm_shootdown_pending, 0);
if (pending && pmap_tlb_shootdown_bystanders(pmap))
PMAP_COUNT(shootdown_ipis);