blk: rq_data_dir() should not return a boolean
[cris-mirror.git] / arch / arm / mach-ux500 / hotplug.c
blob2bc00b085e38d4b1540a25563058735cd67a1af4
1 /*
2 * Copyright (C) STMicroelectronics 2009
3 * Copyright (C) ST-Ericsson SA 2010
5 * License Terms: GNU General Public License v2
6 * Based on ARM realview platform
8 * Author: Sundar Iyer <sundar.iyer@stericsson.com>
11 #include <linux/kernel.h>
12 #include <linux/errno.h>
13 #include <linux/smp.h>
15 #include <asm/smp_plat.h>
17 #include "setup.h"
20 * platform-specific code to shutdown a CPU
22 * Called with IRQs disabled
24 void __ref ux500_cpu_die(unsigned int cpu)
26 /* directly enter low power state, skipping secure registers */
27 for (;;) {
28 __asm__ __volatile__("dsb\n\t" "wfi\n\t"
29 : : : "memory");
30 if (pen_release == cpu_logical_map(cpu)) {
32 * OK, proper wakeup, we're done
34 break;