blob: 878e3733bbb2c6577074899e34cb034accee3d60 [file] [log] [blame]
Ralf Baechle940f6b42007-11-24 22:33:28 +00001/*
2 * This file is subject to the terms and conditions of the GNU General Public
3 * License. See the file "COPYING" in the main directory of this archive
4 * for more details.
5 *
6 * Copyright (C) 2006, 07 by Ralf Baechle (ralf@linux-mips.org)
7 *
8 * Symmetric Uniprocessor (TM) Support
9 */
10#include <linux/kernel.h>
11#include <linux/sched.h>
12
13/*
14 * Send inter-processor interrupt
15 */
Dmitri Vorobiev1451a392009-03-23 00:12:28 +020016static void up_send_ipi_single(int cpu, unsigned int action)
Ralf Baechle940f6b42007-11-24 22:33:28 +000017{
18 panic(KERN_ERR "%s called", __func__);
19}
20
21static inline void up_send_ipi_mask(cpumask_t mask, unsigned int action)
22{
23 panic(KERN_ERR "%s called", __func__);
24}
25
26/*
27 * After we've done initial boot, this function is called to allow the
28 * board code to clean up state, if needed
29 */
Dmitri Vorobiev1451a392009-03-23 00:12:28 +020030static void __cpuinit up_init_secondary(void)
Ralf Baechle940f6b42007-11-24 22:33:28 +000031{
32}
33
Dmitri Vorobiev1451a392009-03-23 00:12:28 +020034static void __cpuinit up_smp_finish(void)
Ralf Baechle940f6b42007-11-24 22:33:28 +000035{
36}
37
38/* Hook for after all CPUs are online */
Dmitri Vorobiev1451a392009-03-23 00:12:28 +020039static void up_cpus_done(void)
Ralf Baechle940f6b42007-11-24 22:33:28 +000040{
41}
42
43/*
44 * Firmware CPU startup hook
45 */
Dmitri Vorobiev1451a392009-03-23 00:12:28 +020046static void __cpuinit up_boot_secondary(int cpu, struct task_struct *idle)
Ralf Baechle940f6b42007-11-24 22:33:28 +000047{
48}
49
Dmitri Vorobiev1451a392009-03-23 00:12:28 +020050static void __init up_smp_setup(void)
Ralf Baechle940f6b42007-11-24 22:33:28 +000051{
52}
53
Dmitri Vorobiev1451a392009-03-23 00:12:28 +020054static void __init up_prepare_cpus(unsigned int max_cpus)
Ralf Baechle940f6b42007-11-24 22:33:28 +000055{
56}
57
58struct plat_smp_ops up_smp_ops = {
59 .send_ipi_single = up_send_ipi_single,
60 .send_ipi_mask = up_send_ipi_mask,
61 .init_secondary = up_init_secondary,
62 .smp_finish = up_smp_finish,
63 .cpus_done = up_cpus_done,
64 .boot_secondary = up_boot_secondary,
65 .smp_setup = up_smp_setup,
66 .prepare_cpus = up_prepare_cpus,
67};