diff options
author | Olof Johansson <olof@lixom.net> | 2013-02-05 16:19:03 -0500 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2013-02-05 16:19:03 -0500 |
commit | 0b6ad80abb1ad1584347e5ec5c5739ebc540a1a7 (patch) | |
tree | a91d4934ac4ffda651804b30554bb6da5af572d4 /arch/arm/mach-tegra/hotplug.c | |
parent | f015941f6b4a7d4d90c46a65bca17f2c2c41fb89 (diff) | |
parent | f7c66dc0bf0f4ecd349c79315c87841c67e27aef (diff) |
Merge branch 'next/soc' into next/dt
Diffstat (limited to 'arch/arm/mach-tegra/hotplug.c')
-rw-r--r-- | arch/arm/mach-tegra/hotplug.c | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/arch/arm/mach-tegra/hotplug.c b/arch/arm/mach-tegra/hotplug.c index dca5141a2c31..a599f6e36dea 100644 --- a/arch/arm/mach-tegra/hotplug.c +++ b/arch/arm/mach-tegra/hotplug.c | |||
@@ -10,15 +10,26 @@ | |||
10 | */ | 10 | */ |
11 | #include <linux/kernel.h> | 11 | #include <linux/kernel.h> |
12 | #include <linux/smp.h> | 12 | #include <linux/smp.h> |
13 | #include <linux/clk/tegra.h> | ||
13 | 14 | ||
14 | #include <asm/cacheflush.h> | 15 | #include <asm/cacheflush.h> |
15 | #include <asm/smp_plat.h> | 16 | #include <asm/smp_plat.h> |
16 | 17 | ||
17 | #include "sleep.h" | 18 | #include "sleep.h" |
18 | #include "tegra_cpu_car.h" | ||
19 | 19 | ||
20 | static void (*tegra_hotplug_shutdown)(void); | 20 | static void (*tegra_hotplug_shutdown)(void); |
21 | 21 | ||
22 | int tegra_cpu_kill(unsigned cpu) | ||
23 | { | ||
24 | cpu = cpu_logical_map(cpu); | ||
25 | |||
26 | /* Clock gate the CPU */ | ||
27 | tegra_wait_cpu_in_reset(cpu); | ||
28 | tegra_disable_cpu_clock(cpu); | ||
29 | |||
30 | return 1; | ||
31 | } | ||
32 | |||
22 | /* | 33 | /* |
23 | * platform-specific code to shutdown a CPU | 34 | * platform-specific code to shutdown a CPU |
24 | * | 35 | * |
@@ -26,18 +37,12 @@ static void (*tegra_hotplug_shutdown)(void); | |||
26 | */ | 37 | */ |
27 | void __ref tegra_cpu_die(unsigned int cpu) | 38 | void __ref tegra_cpu_die(unsigned int cpu) |
28 | { | 39 | { |
29 | cpu = cpu_logical_map(cpu); | 40 | /* Clean L1 data cache */ |
30 | 41 | tegra_disable_clean_inv_dcache(); | |
31 | /* Flush the L1 data cache. */ | ||
32 | flush_cache_all(); | ||
33 | 42 | ||
34 | /* Shut down the current CPU. */ | 43 | /* Shut down the current CPU. */ |
35 | tegra_hotplug_shutdown(); | 44 | tegra_hotplug_shutdown(); |
36 | 45 | ||
37 | /* Clock gate the CPU */ | ||
38 | tegra_wait_cpu_in_reset(cpu); | ||
39 | tegra_disable_cpu_clock(cpu); | ||
40 | |||
41 | /* Should never return here. */ | 46 | /* Should never return here. */ |
42 | BUG(); | 47 | BUG(); |
43 | } | 48 | } |