mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 21:02:19 +00:00
86c38fec69
Several files include asm/prom.h for no reason. Clean it up. Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu> [mpe: Drop change to prom_parse.c as reported by lkp@intel.com] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/7c9b8fda63dcf63e1b28f43e7ebdb95182cbc286.1646767214.git.christophe.leroy@csgroup.eu
55 lines
1.2 KiB
C
55 lines
1.2 KiB
C
// SPDX-License-Identifier: GPL-2.0
|
|
/*
|
|
* Smp support for CHRP machines.
|
|
*
|
|
* Written by Cort Dougan (cort@cs.nmt.edu) borrowing a great
|
|
* deal of code from the sparc and intel versions.
|
|
*
|
|
* Copyright (C) 1999 Cort Dougan <cort@cs.nmt.edu>
|
|
*
|
|
*/
|
|
|
|
#include <linux/kernel.h>
|
|
#include <linux/sched.h>
|
|
#include <linux/smp.h>
|
|
#include <linux/interrupt.h>
|
|
#include <linux/kernel_stat.h>
|
|
#include <linux/delay.h>
|
|
#include <linux/spinlock.h>
|
|
#include <linux/pgtable.h>
|
|
|
|
#include <asm/ptrace.h>
|
|
#include <linux/atomic.h>
|
|
#include <asm/irq.h>
|
|
#include <asm/page.h>
|
|
#include <asm/sections.h>
|
|
#include <asm/io.h>
|
|
#include <asm/smp.h>
|
|
#include <asm/machdep.h>
|
|
#include <asm/mpic.h>
|
|
#include <asm/rtas.h>
|
|
|
|
static int smp_chrp_kick_cpu(int nr)
|
|
{
|
|
*(unsigned long *)KERNELBASE = nr;
|
|
asm volatile("dcbf 0,%0"::"r"(KERNELBASE):"memory");
|
|
|
|
return 0;
|
|
}
|
|
|
|
static void smp_chrp_setup_cpu(int cpu_nr)
|
|
{
|
|
mpic_setup_this_cpu();
|
|
}
|
|
|
|
/* CHRP with openpic */
|
|
struct smp_ops_t chrp_smp_ops = {
|
|
.cause_nmi_ipi = NULL,
|
|
.message_pass = smp_mpic_message_pass,
|
|
.probe = smp_mpic_probe,
|
|
.kick_cpu = smp_chrp_kick_cpu,
|
|
.setup_cpu = smp_chrp_setup_cpu,
|
|
.give_timebase = rtas_give_timebase,
|
|
.take_timebase = rtas_take_timebase,
|
|
};
|