smpboot.c (2875fe0561569f82d0e63658ccf0d11ce7da8922) smpboot.c (cfafe260137418d0265d0df3bb18dc494af2b43e)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * SMP initialisation and IPI support
4 * Based on arch/arm64/kernel/smp.c
5 *
6 * Copyright (C) 2012 ARM Ltd.
7 * Copyright (C) 2015 Regents of the University of California
8 * Copyright (C) 2017 SiFive

--- 129 unchanged lines hidden (view full) ---

138
139void __init smp_cpus_done(unsigned int max_cpus)
140{
141}
142
143/*
144 * C entry point for a secondary processor.
145 */
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * SMP initialisation and IPI support
4 * Based on arch/arm64/kernel/smp.c
5 *
6 * Copyright (C) 2012 ARM Ltd.
7 * Copyright (C) 2015 Regents of the University of California
8 * Copyright (C) 2017 SiFive

--- 129 unchanged lines hidden (view full) ---

138
139void __init smp_cpus_done(unsigned int max_cpus)
140{
141}
142
143/*
144 * C entry point for a secondary processor.
145 */
146asmlinkage __visible void __init smp_callin(void)
146asmlinkage __visible void smp_callin(void)
147{
148 struct mm_struct *mm = &init_mm;
149
150 if (!IS_ENABLED(CONFIG_RISCV_SBI))
151 clint_clear_ipi(cpuid_to_hartid_map(smp_processor_id()));
152
153 /* All kernel threads share the same mm context. */
154 mmgrab(mm);

--- 20 unchanged lines hidden ---
147{
148 struct mm_struct *mm = &init_mm;
149
150 if (!IS_ENABLED(CONFIG_RISCV_SBI))
151 clint_clear_ipi(cpuid_to_hartid_map(smp_processor_id()));
152
153 /* All kernel threads share the same mm context. */
154 mmgrab(mm);

--- 20 unchanged lines hidden ---