1
0
Fork 0
alistair23-linux/drivers
Oscar Salvador 4fbce63391 mm/memory_hotplug.c: make register_mem_sect_under_node() a callback of walk_memory_range()
link_mem_sections() and walk_memory_range() share most of the code, so
we can use convert link_mem_sections() into a dummy function that calls
walk_memory_range() with a callback to register_mem_sect_under_node().

This patch converts register_mem_sect_under_node() in order to match a
walk_memory_range's callback, getting rid of the check_nid argument and
checking instead if the system is still boothing, since we only have to
check for the nid if the system is in such state.

Link: http://lkml.kernel.org/r/20180622111839.10071-4-osalvador@techadventures.net
Signed-off-by: Oscar Salvador <osalvador@suse.de>
Suggested-by: Pavel Tatashin <pasha.tatashin@oracle.com>
Tested-by: Reza Arbab <arbab@linux.vnet.ibm.com>
Tested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Pavel Tatashin <pavel.tatashin@microsoft.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2018-08-17 16:20:29 -07:00
..
accessibility
acpi arm64 updates for 4.19 2018-08-14 16:39:13 -07:00
amba Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm 2018-06-06 13:49:25 -07:00
android treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
ata SCSI misc on 20180815 2018-08-15 22:06:26 -07:00
atm Merge ra.kernel.org:/pub/scm/linux/kernel/git/davem/net 2018-07-03 10:29:26 +09:00
auxdisplay auxdisplay: simplify getting .drvdata 2018-08-01 18:58:09 +02:00
base mm/memory_hotplug.c: make register_mem_sect_under_node() a callback of walk_memory_range() 2018-08-17 16:20:29 -07:00
bcma bcma: Allow selection of this driver when COMPILE_TEST=y 2018-07-18 09:34:19 +02:00
block Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2018-08-15 15:04:25 -07:00
bluetooth Bluetooth: mediatek: pass correct size to h4_recv_buf() 2018-08-13 15:59:39 +02:00
bus bus: ti-sysc: Use 2-factor allocator arguments 2018-07-02 04:24:44 -07:00
cdrom cdrom: Use struct scsi_sense_hdr internally 2018-08-02 15:22:39 -06:00
char Merge branch 'next-tpm' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security 2018-08-15 22:51:12 -07:00
clk The new and exciting feature this time around is in the clk core. 2018-08-15 21:41:21 -07:00
clocksource Merge branch 'x86-timers-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2018-08-13 18:28:19 -07:00
connector connector: fix defined but not used warning 2018-07-08 11:00:50 +09:00
cpufreq cpufreq: intel_pstate: Ignore turbo active ratio in HWP 2018-08-06 10:22:27 +02:00
cpuidle ARM: cpuidle: silence error on driver registration failure 2018-06-25 09:33:34 +02:00
crypto Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2018-08-15 16:01:47 -07:00
dax dax: remove VM_MIXEDMAP for fsdax and device dax 2018-08-17 16:20:27 -07:00
dca
devfreq PM / devfreq: rk3399_dmc: Fix duplicated opp table on reload. 2018-07-18 13:58:39 +09:00
dio
dma Merge branch 'asoc-4.19' into asoc-next 2018-08-09 14:47:05 +01:00
dma-buf dma-buf: Move BUG_ON from _add_shared_fence to _add_shared_inplace 2018-07-16 20:20:37 +05:30
edac EDAC, sb_edac: Add support for systems with segmented PCI buses 2018-07-25 11:17:15 +02:00
eisa
extcon treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
firewire firewire: use 64-bit time_t based interfaces 2018-08-17 16:20:27 -07:00
firmware media updates for v4.19-rc1 2018-08-15 18:29:14 -07:00
fmc treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
fpga fpga: altera-cvp: Fix an error handling path in 'altera_cvp_probe()' 2018-07-07 16:55:22 +02:00
fsi
gpio This is the bulk of GPIO changes for the v4.19 kernel cycle: 2018-08-15 21:35:38 -07:00
gpu drm pull for 4.19-rc1 2018-08-15 17:39:07 -07:00
hid Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid 2018-07-09 17:16:11 -07:00
hsi
hv treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
hwmon Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2018-08-15 15:04:25 -07:00
hwspinlock hwspinlock updates for v4.18 2018-06-11 12:09:19 -07:00
hwtracing treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
i2c regmap: Changes for v4.19 2018-08-14 11:51:03 -07:00
ide ide-cd: Remove redundant sense buffer 2018-08-02 15:22:37 -06:00
idle
iio iio: imu: inv_mpu6050: Fix probe() failure on older ACPI based machines 2018-06-24 14:50:52 +01:00
infiniband pci-v4.19-changes 2018-08-16 09:21:54 -07:00
input m68k updates for 4.19 2018-08-13 09:50:24 -07:00
iommu mm: convert return type of handle_mm_fault() caller to vm_fault_t 2018-08-17 16:20:28 -07:00
ipack treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
irqchip irqchip updates for 4.19 2018-08-06 12:45:42 +02:00
isdn isdn: hisax: config: Replace GFP_ATOMIC with GFP_KERNEL 2018-07-26 21:23:47 -07:00
leds leds: ns2: Change unsigned to unsigned int 2018-08-06 23:03:12 +02:00
lightnvm block: Add and use op_stat_group() for indexing disk_stat fields. 2018-07-18 08:44:20 -06:00
macintosh powerpc updates for 4.18 2018-06-07 10:23:33 -07:00
mailbox mailbox: Add support for i.MX messaging unit 2018-08-15 09:53:07 +05:30
mcb
md Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/shli/md 2018-08-14 11:03:16 -07:00
media media updates for v4.19-rc1 2018-08-15 18:29:14 -07:00
memory drivers/memory/Kconfig: Add CONFIG_OF dependency 2018-07-31 09:46:06 +02:00
memstick treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
message scsi: message: fusion: Replace GFP_ATOMIC with GFP_KERNEL 2018-07-30 23:17:53 -04:00
mfd Merge branch 'i2c/for-4.18' of git://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux 2018-06-14 16:21:46 +09:00
misc mm: convert return type of handle_mm_fault() caller to vm_fault_t 2018-08-17 16:20:28 -07:00
mmc Merge branch 'asoc-4.19' into asoc-next 2018-08-09 14:47:05 +01:00
mtd sound updates for 4.19 2018-08-14 14:10:30 -07:00
mux
net pci-v4.19-changes 2018-08-16 09:21:54 -07:00
nfc NFC: pn533: Fix wrong GFP flag usage 2018-06-25 21:36:45 +08:00
ntb switchtec: Use generic PCI Vendor ID and Class Code 2018-06-29 20:16:44 -05:00
nubus nubus: Set default dma mask for nubus_board devices 2018-07-23 15:07:12 +02:00
nvdimm Linux 4.18-rc6 2018-08-05 19:32:09 -06:00
nvme for-4.19/block-20180812 2018-08-14 10:23:25 -07:00
nvmem nvmem: Don't let a NULL cell_id for nvmem_cell_get() crash us 2018-07-07 17:30:25 +02:00
of Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2018-08-15 15:04:25 -07:00
opp PM / OPP: Update voltage in case freq == old_freq 2018-06-19 15:53:32 +05:30
oprofile treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
parisc dma-mapping updates for 4.18: 2018-06-04 10:58:12 -07:00
parport docs: Fix some broken references 2018-06-15 18:10:01 -03:00
pci pci-v4.19-changes 2018-08-16 09:21:54 -07:00
pcmcia treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
perf Merge branch 'for-next/perf' of git://git.kernel.org/pub/scm/linux/kernel/git/will/linux into aarch64/for-next/core 2018-07-27 14:39:04 +01:00
phy phy: mapphone-mdm6600: Fix wrong enum used for status lines 2018-06-29 12:00:22 +05:30
pinctrl This is the bulk of pin control changes for v4.19: 2018-08-14 12:31:27 -07:00
platform pci-v4.19-changes 2018-08-16 09:21:54 -07:00
pnp media updates for v4.18-rc1 2018-06-07 12:34:37 -07:00
power treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
powercap powercap / idle_inject: Add an idle injection framework 2018-07-02 13:00:24 +02:00
pps
ps3
ptp ptp_qoriq: use div_u64/div_u64_rem for 64-bit division 2018-08-06 10:43:35 -07:00
pwm pwm: Changes for v4.18-rc1 2018-06-14 16:25:43 +09:00
rapidio treewide: Use array_size() in vmalloc() 2018-06-12 16:19:22 -07:00
ras
regulator Merge branch 'regulator-4.19' into regulator-next 2018-08-10 17:31:24 +01:00
remoteproc treewide: use PHYS_ADDR_MAX to avoid type casting ULLONG_MAX 2018-06-15 07:55:25 +09:00
reset - Error path bug fix for overflow tests (Dan) 2018-06-12 18:28:00 -07:00
rpmsg rpmsg: smd: do not use mananged resources for endpoints and channels 2018-06-04 12:35:03 -07:00
rtc rtc: fix alarm read and set offset 2018-07-13 10:37:54 +02:00
s390 Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next 2018-08-15 15:04:25 -07:00
sbus fix a series of Documentation/ broken file name references 2018-06-15 18:10:01 -03:00
scsi SCSI misc on 20180815 2018-08-15 22:06:26 -07:00
sfi
sh sh: introduce a sh_cacheop_vaddr helper 2018-08-02 13:54:06 +02:00
siox
slimbus treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
sn
soc Power management updates for 4.19-rc1 2018-08-14 13:12:24 -07:00
soundwire docs: Fix more broken references 2018-06-15 18:11:26 -03:00
spi Merge branch 'spi-4.19' into spi-next 2018-08-10 17:51:52 +01:00
spmi
ssb ssb: Remove SSB_WARN_ON, SSB_BUG_ON and SSB_DEBUG 2018-08-09 18:47:47 +03:00
staging media updates for v4.19-rc1 2018-08-15 18:29:14 -07:00
target SCSI misc on 20180815 2018-08-15 22:06:26 -07:00
tc
tee drm-misc-next for 4.19: 2018-06-22 12:58:08 +10:00
thermal Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/evalenti/linux-soc-thermal 2018-08-16 10:21:18 -07:00
thunderbolt thunderbolt: Notify userspace when boot_acl is changed 2018-07-07 17:29:17 +02:00
tty audit/stable-4.18 PR 20180814 2018-08-15 10:46:54 -07:00
uio uio: fix crash after the device is unregistered 2018-07-07 16:57:35 +02:00
usb SCSI misc on 20180815 2018-08-15 22:06:26 -07:00
uwb treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
vfio VFIO updates for v4.19 2018-08-16 10:34:05 -07:00
vhost SCSI misc on 20180815 2018-08-15 22:06:26 -07:00
video media updates for v4.19-rc1 2018-08-15 18:29:14 -07:00
virt treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
virtio virtio: Make vp_set_vq_affinity() take a mask. 2018-08-11 12:02:18 -07:00
visorbus
vlynq
vme
w1 w1: Allow compile test of GPIO consumers if !GPIOLIB 2018-06-26 09:46:27 +02:00
watchdog MIPS changes for 4.18 2018-06-12 12:56:02 -07:00
xen SCSI misc on 20180815 2018-08-15 22:06:26 -07:00
zorro - Introduce arithmetic overflow test helper functions (Rasmus) 2018-06-06 17:27:14 -07:00
Kconfig
Makefile scsi: build scsi_common.o for all scsi passthrough request users 2018-08-02 15:19:48 -06:00