ASoC: rt5645: Add struct dmi_system_id "Google Ultima" for chrome platform
[deliverable/linux.git] / arch / mips / kernel / smp-up.c
CommitLineData
940f6b48
RB
1/*
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 */
1451a395 16static void up_send_ipi_single(int cpu, unsigned int action)
940f6b48
RB
17{
18 panic(KERN_ERR "%s called", __func__);
19}
20
48a048fe
RR
21static inline void up_send_ipi_mask(const struct cpumask *mask,
22 unsigned int action)
940f6b48
RB
23{
24 panic(KERN_ERR "%s called", __func__);
25}
26
27/*
28 * After we've done initial boot, this function is called to allow the
29 * board code to clean up state, if needed
30 */
078a55fc 31static void up_init_secondary(void)
940f6b48
RB
32{
33}
34
078a55fc 35static void up_smp_finish(void)
940f6b48
RB
36{
37}
38
940f6b48
RB
39/*
40 * Firmware CPU startup hook
41 */
078a55fc 42static void up_boot_secondary(int cpu, struct task_struct *idle)
940f6b48
RB
43{
44}
45
1451a395 46static void __init up_smp_setup(void)
940f6b48
RB
47{
48}
49
1451a395 50static void __init up_prepare_cpus(unsigned int max_cpus)
940f6b48
RB
51{
52}
53
1b2bc75c
RB
54#ifdef CONFIG_HOTPLUG_CPU
55static int up_cpu_disable(void)
56{
57 return -ENOSYS;
58}
59
60static void up_cpu_die(unsigned int cpu)
61{
62 BUG();
63}
64#endif
65
940f6b48
RB
66struct plat_smp_ops up_smp_ops = {
67 .send_ipi_single = up_send_ipi_single,
68 .send_ipi_mask = up_send_ipi_mask,
69 .init_secondary = up_init_secondary,
70 .smp_finish = up_smp_finish,
940f6b48
RB
71 .boot_secondary = up_boot_secondary,
72 .smp_setup = up_smp_setup,
73 .prepare_cpus = up_prepare_cpus,
1b2bc75c
RB
74#ifdef CONFIG_HOTPLUG_CPU
75 .cpu_disable = up_cpu_disable,
76 .cpu_die = up_cpu_die,
77#endif
940f6b48 78};
This page took 0.467023 seconds and 5 git commands to generate.