powerpc/mce: use early_cpu_to_node() in mce_init()
cpu_to_node() is not yet available (setup_arch() is called before setup_per_cpu_areas() by start_kernel()). Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20220711030653.150950-1-npiggin@gmail.com
This commit is contained in:
Родитель
fd193f85d3
Коммит
f57261e698
|
@ -756,7 +756,7 @@ void __init mce_init(void)
|
||||||
mce_info = memblock_alloc_try_nid(sizeof(*mce_info),
|
mce_info = memblock_alloc_try_nid(sizeof(*mce_info),
|
||||||
__alignof__(*mce_info),
|
__alignof__(*mce_info),
|
||||||
MEMBLOCK_LOW_LIMIT,
|
MEMBLOCK_LOW_LIMIT,
|
||||||
limit, cpu_to_node(i));
|
limit, early_cpu_to_node(i));
|
||||||
if (!mce_info)
|
if (!mce_info)
|
||||||
goto err;
|
goto err;
|
||||||
paca_ptrs[i]->mce_info = mce_info;
|
paca_ptrs[i]->mce_info = mce_info;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче