freebsd-dev/sys/powerpc/aim
Mark Johnston 431fb8abd7 vm_phys: Try to clean up NUMA KPIs
It can useful for code outside the VM system to look up the NUMA domain
of a page backing a virtual or physical address, specifically when
creating NUMA-aware data structures.  We have _vm_phys_domain() for
this, but the leading underscore implies that it's an internal function,
and vm_phys.h has dependencies on a number of other headers.

Rename vm_phys_domain() to vm_page_domain(), and _vm_phys_domain() to
vm_phys_domain().  Make the latter an inline function.

Add _vm_phys.h and define struct vm_phys_seg there so that it's easier
to use in other headers.  Include it from vm_page.h so that
vm_page_domain() can be defined there.

Include machine/vmparam.h from _vm_phys.h since it depends directly on
some constants defined there.

Reviewed by:	alc
Reviewed by:	dougm, kib (earlier versions)
Differential Revision:	https://reviews.freebsd.org/D27207
2020-11-19 03:59:21 +00:00
..
aim_machdep.c [PowerPC64LE] LE bringup work: locore / machdep / platform 2020-09-22 23:55:34 +00:00
locore32.S powerpc64: Add a trap stack area 2019-02-04 16:02:03 +00:00
locore64.S [PowerPC64LE] LE bringup work: locore / machdep / platform 2020-09-22 23:55:34 +00:00
locore.S Add a kdb show command to print arbitrary SPRs on PowerPC 2016-08-13 18:46:49 +00:00
mmu_oea64.c vm_phys: Try to clean up NUMA KPIs 2020-11-19 03:59:21 +00:00
mmu_oea64.h Implement superpages for PowerPC64 (HPT) 2020-11-06 14:12:45 +00:00
mmu_oea.c [PowerPC] Implement pmap_mincore() for moea 2020-09-13 16:46:03 +00:00
mmu_radix.c vm_phys: Try to clean up NUMA KPIs 2020-11-19 03:59:21 +00:00
moea64_native.c [PowerPC] Fix powerpc64le boot after HPT superpages addition 2020-11-08 23:34:06 +00:00
mp_cpudep.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
slb.c powerpc: clean up empty lines in .c and .h files 2020-09-01 21:20:08 +00:00
trap_subr32.S [PowerPC] Fix invalid asm in trap code 2020-05-27 00:17:05 +00:00
trap_subr64.S [PowerPC64LE] Fix AP spinup on powernv. 2020-09-23 01:56:26 +00:00