smpboot.c (b7f8f259896f669f131713b0c74ba4d008daa71d) smpboot.c (6f4eea90465ad0cd5f3d041b9b2c728426f2b8d4)
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

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

27#include <asm/cpu_ops.h>
28#include <asm/irq.h>
29#include <asm/mmu_context.h>
30#include <asm/numa.h>
31#include <asm/tlbflush.h>
32#include <asm/sections.h>
33#include <asm/sbi.h>
34#include <asm/smp.h>
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

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

27#include <asm/cpu_ops.h>
28#include <asm/irq.h>
29#include <asm/mmu_context.h>
30#include <asm/numa.h>
31#include <asm/tlbflush.h>
32#include <asm/sections.h>
33#include <asm/sbi.h>
34#include <asm/smp.h>
35#include <asm/alternative.h>
35
36#include "head.h"
37
38static DECLARE_COMPLETION(cpu_running);
39
40void __init smp_prepare_boot_cpu(void)
41{
42 init_cpu_topology();
36
37#include "head.h"
38
39static DECLARE_COMPLETION(cpu_running);
40
41void __init smp_prepare_boot_cpu(void)
42{
43 init_cpu_topology();
44#ifdef CONFIG_RISCV_ERRATA_ALTERNATIVE
45 apply_boot_alternatives();
46#endif
43}
44
45void __init smp_prepare_cpus(unsigned int max_cpus)
46{
47 int cpuid;
48 int ret;
49 unsigned int curr_cpuid;
50

--- 132 unchanged lines hidden ---
47}
48
49void __init smp_prepare_cpus(unsigned int max_cpus)
50{
51 int cpuid;
52 int ret;
53 unsigned int curr_cpuid;
54

--- 132 unchanged lines hidden ---