Skip to content
This repository was archived by the owner on Jul 16, 2024. It is now read-only.

rework NODES_SPAN_OTHER_NODES config on 5.10 kernel #149

Open
adamliyi opened this issue Mar 9, 2022 · 0 comments
Open

rework NODES_SPAN_OTHER_NODES config on 5.10 kernel #149

adamliyi opened this issue Mar 9, 2022 · 0 comments

Comments

@adamliyi
Copy link
Contributor

adamliyi commented Mar 9, 2022

The commit: a1120b0 introduced 'NODES_SPAN_OTHER_NODES' to arch/arm64/Kconfig, this does not make sense:

# git checkout linux-5.10.y
# grep NODES_SPAN_OTHER_NODES * -R
arch/arm64/Kconfig:config NODES_SPAN_OTHER_NODES

There is not code actually use NODES_SPAN_OTHER_NODES.

This patch is necessary on 5.4 kernel:

# git checkout linux-5.4.y
# grep NODES_SPAN_OTHER_NODES * -R
arch/arm64/Kconfig:config NODES_SPAN_OTHER_NODES
arch/powerpc/Kconfig:config NODES_SPAN_OTHER_NODES
arch/s390/Kconfig:config NODES_SPAN_OTHER_NODES
arch/sparc/Kconfig:config NODES_SPAN_OTHER_NODES
arch/x86/Kconfig:config NODES_SPAN_OTHER_NODES
mm/page_alloc.c:#ifdef CONFIG_NODES_SPAN_OTHER_NODES  <--------- code actually use it

From upstream commits: torvalds/linux@acd3f5c (mm: remove early_pfn_in_nid() and CONFIG_NODES_SPAN_OTHER_NODES). This config is removed since 5.8 kernel.

So we need to revert commit a1120b0

@adamliyi adamliyi changed the title rework NODES_SPAN_OTHER_NODES config on 5.10 and 5.15 kernel rework NODES_SPAN_OTHER_NODES config on 5.10 kernel Mar 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant