blk: rq_data_dir() should not return a boolean
[cris-mirror.git] / arch / arm / mach-shmobile / platsmp.c
blobb23378f3d7e1726b6f92b3cc8be0ba8264c838f7
1 /*
2 * SMP support for R-Mobile / SH-Mobile
4 * Copyright (C) 2010 Magnus Damm
5 * Copyright (C) 2011 Paul Mundt
7 * Based on vexpress, Copyright (C) 2002 ARM Ltd, All Rights Reserved
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
13 #include <linux/init.h>
14 #include <asm/cacheflush.h>
15 #include <asm/smp_plat.h>
16 #include "common.h"
18 extern unsigned long shmobile_smp_fn[];
19 extern unsigned long shmobile_smp_arg[];
20 extern unsigned long shmobile_smp_mpidr[];
22 void shmobile_smp_hook(unsigned int cpu, unsigned long fn, unsigned long arg)
24 shmobile_smp_fn[cpu] = 0;
25 flush_cache_all();
27 shmobile_smp_mpidr[cpu] = cpu_logical_map(cpu);
28 shmobile_smp_fn[cpu] = fn;
29 shmobile_smp_arg[cpu] = arg;
30 flush_cache_all();
33 #ifdef CONFIG_HOTPLUG_CPU
34 bool shmobile_smp_cpu_can_disable(unsigned int cpu)
36 return true; /* Hotplug of any CPU is supported */
38 #endif