diff options
author | Alan Cox <alc@FreeBSD.org> | 2018-07-21 21:26:38 +0000 |
---|---|---|
committer | Alan Cox <alc@FreeBSD.org> | 2018-07-21 21:26:38 +0000 |
commit | 1cff4e0108dd79209d1d05843fad64bc067d7cd6 (patch) | |
tree | 1c0f666befa5501321b62aa6f47fa4123e4bb849 /sys/arm64 | |
parent | 8cadd66d98b2c2194166d5f229e7c2fbc89fde7e (diff) | |
download | src-1cff4e0108dd79209d1d05843fad64bc067d7cd6.tar.gz src-1cff4e0108dd79209d1d05843fad64bc067d7cd6.zip |
Eliminate a comment that doesn't apply to this pmap implementation.
Coalesce the variable definitions for PV entry management.
MFC after: 3 weeks
Notes
Notes:
svn path=/head/; revision=336589
Diffstat (limited to 'sys/arm64')
-rw-r--r-- | sys/arm64/arm64/pmap.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/arm64/arm64/pmap.c b/sys/arm64/arm64/pmap.c index f51758342e0d..2bae8810fd86 100644 --- a/sys/arm64/arm64/pmap.c +++ b/sys/arm64/arm64/pmap.c @@ -242,9 +242,10 @@ vm_offset_t kernel_vm_end = 0; /* * Data for the pv entry allocation mechanism. - * Updates to pv_invl_gen are protected by the pv_list_locks[] - * elements, but reads are not. */ +static TAILQ_HEAD(pch, pv_chunk) pv_chunks = TAILQ_HEAD_INITIALIZER(pv_chunks); +static struct mtx pv_chunks_mutex; +static struct rwlock pv_list_locks[NPV_LIST_LOCKS]; static struct md_page *pv_table; static struct md_page pv_dummy; @@ -271,13 +272,6 @@ SYSCTL_INT(_vm_pmap, OID_AUTO, superpages_enabled, "Are large page mappings enabled?"); /* - * Data for the pv entry allocation mechanism - */ -static TAILQ_HEAD(pch, pv_chunk) pv_chunks = TAILQ_HEAD_INITIALIZER(pv_chunks); -static struct mtx pv_chunks_mutex; -static struct rwlock pv_list_locks[NPV_LIST_LOCKS]; - -/* * Internal flags for pmap_enter()'s helper functions. */ #define PMAP_ENTER_NORECLAIM 0x1000000 /* Don't reclaim PV entries. */ |