diff options
| author | Zhenghui Hao <zhenghui.hao@qq.com> | 2026-09-18 13:46:49 +0800 |
|---|---|---|
| committer | Helge Deller <deller@gmx.de> | 2026-09-18 13:38:15 +0200 |
| commit | 289e99e7a263c6fd6a5d07d6d8f2156b70f3a9d5 (patch) | |
| tree | 4731e066f0bb1d3b24f9af0da67ef564d00a6e55 /tools/perf/tests/shell/test_stackcollapse_python.sh | |
| parent | cb917b1e1c23f6f9b73802cd576b48bd606458c0 (diff) | |
| download | linux-next-289e99e7a263c6fd6a5d07d6d8f2156b70f3a9d5.tar.gz linux-next-289e99e7a263c6fd6a5d07d6d8f2156b70f3a9d5.zip | |
parisc: parse early parameters in setup_arch()
parisc is one of the few architectures that does not call
parse_early_param() from setup_arch(). That was mostly harmless until
commit d49004c5f0c1 ("arch, mm: consolidate initialization of nodes,
zones and memory map") moved the consumer of several hugetlb command
line parameters into mm_core_init_early(), which runs before the
generic parse_early_param() call in start_kernel().
As a result hugepages=, hugepagesz=, default_hugepagesz=, hugetlb_cma=
and hugetlb_free_vmemmap= are recorded after they have already been
consumed and are silently dropped on parisc.
Call parse_early_param() from setup_arch(), after the command line has
been set up and the memory inventory has been taken. jump_label_init()
must be called first because early parameter handlers may enable or
disable static keys. Both functions are safe to call more than once:
the generic calls in start_kernel() remain in place and turn into no-ops.
Suggested-by: Mike Rapoport (Microsoft) <rppt@kernel.org>
Fixes: d49004c5f0c1 ("arch, mm: consolidate initialization of nodes, zones and memory map")
Cc: <stable@vger.kernel.org>
Signed-off-by: Zhenghui Hao <zhenghui.hao@qq.com>
Tested-by: Helge Deller <deller@gmx.de>
Signed-off-by: Helge Deller <deller@gmx.de>
Diffstat (limited to 'tools/perf/tests/shell/test_stackcollapse_python.sh')
0 files changed, 0 insertions, 0 deletions
