Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355291
b: refs/heads/master
c: b811943
h: refs/heads/master
i:
  355289: bcc3509
  355287: befdb16
v: v3
  • Loading branch information
Joseph Lo authored and Stephen Warren committed Jan 28, 2013
1 parent 55b5448 commit f0480c5
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 57886616ca7bff844a6427436d0c8faf74653f73
refs/heads/master: b811943160cf3b040341c50d23440cf6d68ae079
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-tegra/common.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
extern struct smp_operations tegra_smp_ops;

extern int tegra_cpu_kill(unsigned int cpu);
extern void tegra_cpu_die(unsigned int cpu);
extern int tegra_cpu_disable(unsigned int cpu);
17 changes: 11 additions & 6 deletions trunk/arch/arm/mach-tegra/hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,30 @@

static void (*tegra_hotplug_shutdown)(void);

int tegra_cpu_kill(unsigned cpu)
{
cpu = cpu_logical_map(cpu);

/* Clock gate the CPU */
tegra_wait_cpu_in_reset(cpu);
tegra_disable_cpu_clock(cpu);

return 1;
}

/*
* platform-specific code to shutdown a CPU
*
* Called with IRQs disabled
*/
void __ref tegra_cpu_die(unsigned int cpu)
{
cpu = cpu_logical_map(cpu);

/* Clean L1 data cache */
tegra_disable_clean_inv_dcache();

/* Shut down the current CPU. */
tegra_hotplug_shutdown();

/* Clock gate the CPU */
tegra_wait_cpu_in_reset(cpu);
tegra_disable_cpu_clock(cpu);

/* Should never return here. */
BUG();
}
Expand Down
1 change: 1 addition & 0 deletions trunk/arch/arm/mach-tegra/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ struct smp_operations tegra_smp_ops __initdata = {
.smp_secondary_init = tegra_secondary_init,
.smp_boot_secondary = tegra_boot_secondary,
#ifdef CONFIG_HOTPLUG_CPU
.cpu_kill = tegra_cpu_kill,
.cpu_die = tegra_cpu_die,
.cpu_disable = tegra_cpu_disable,
#endif
Expand Down

0 comments on commit f0480c5

Please sign in to comment.