mirror of
https://github.com/torvalds/linux.git
synced 2024-12-18 17:12:55 +00:00
c141611fb1
None of these files are actually using any __init type directives and hence don't need to include <linux/init.h>. Most are just a left over from __devinit and __cpuinit removal, or simply due to code getting copied from one driver to the next. The one instance where we add an include for init.h covers off a case where that file was implicitly getting it from another header which itself didn't need it. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
54 lines
1.1 KiB
C
54 lines
1.1 KiB
C
/*
|
|
* 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 <asm/ptrace.h>
|
|
#include <linux/atomic.h>
|
|
#include <asm/irq.h>
|
|
#include <asm/page.h>
|
|
#include <asm/pgtable.h>
|
|
#include <asm/sections.h>
|
|
#include <asm/io.h>
|
|
#include <asm/prom.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 = {
|
|
.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,
|
|
};
|