Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327126
b: refs/heads/master
c: 28e8e29
h: refs/heads/master
v: v3
  • Loading branch information
Marc Zyngier authored and Arnd Bergmann committed Sep 14, 2012
1 parent 845637d commit 8cfb4d1
Show file tree
Hide file tree
Showing 14 changed files with 8 additions and 42 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: ac6c7998712d55bd15aa2dd5ae85f5988c0cb526
refs/heads/master: 28e8e29c616f947348cc66bea684d0035c76021a
1 change: 1 addition & 0 deletions trunk/arch/arm/include/asm/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ struct secondary_data {
void *stack;
};
extern struct secondary_data secondary_data;
extern volatile int pen_release;

extern int __cpu_disable(void);

Expand Down
6 changes: 6 additions & 0 deletions trunk/arch/arm/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,12 @@
*/
struct secondary_data secondary_data;

/*
* control for which core is the next to come out of the secondary
* boot "holding pen"
*/
volatile int __cpuinitdata pen_release = -1;

enum ipi_msg_type {
IPI_TIMER = 2,
IPI_RESCHEDULE,
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/arm/mach-exynos/hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

#include "common.h"

extern volatile int pen_release;

static inline void cpu_enter_lowpower(void)
{
unsigned int v;
Expand Down
7 changes: 0 additions & 7 deletions trunk/arch/arm/mach-exynos/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ extern void exynos4_secondary_startup(void);
#define CPU1_BOOT_REG (samsung_rev() == EXYNOS4210_REV_1_1 ? \
S5P_INFORM5 : S5P_VA_SYSRAM)

/*
* control for which core is the next to come out of the secondary
* boot "holding pen"
*/

volatile int __cpuinitdata pen_release = -1;

/*
* Write pen_release in a way that is guaranteed to be visible to all
* observers, irrespective of whether they're taking part in coherency
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/arm/mach-msm/hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@

#include "core.h"

extern volatile int pen_release;

static inline void cpu_enter_lowpower(void)
{
/* Just flush the cache. Changing the coherency is not yet
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/arm/mach-msm/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@
#define GIC_PPI_EDGE_MASK 0xFFFFD7FF

extern void msm_secondary_startup(void);
/*
* control for which core is the next to come out of the secondary
* boot "holding pen".
*/
volatile int pen_release = -1;

static DEFINE_SPINLOCK(boot_lock);

Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/arm/mach-realview/hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
#include <asm/cp15.h>
#include <asm/smp_plat.h>

extern volatile int pen_release;

static inline void cpu_enter_lowpower(void)
{
unsigned int v;
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/arm/mach-spear13xx/hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#include <asm/cp15.h>
#include <asm/smp_plat.h>

extern volatile int pen_release;

static inline void cpu_enter_lowpower(void)
{
unsigned int v;
Expand Down
5 changes: 0 additions & 5 deletions trunk/arch/arm/mach-spear13xx/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@
#include <mach/spear.h>
#include <mach/generic.h>

/*
* control for which core is the next to come out of the secondary
* boot "holding pen"
*/
volatile int __cpuinitdata pen_release = -1;
static DEFINE_SPINLOCK(boot_lock);

static void __iomem *scu_base = IOMEM(VA_SCU_BASE);
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/arm/mach-ux500/hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

#include <mach/setup.h>

extern volatile int pen_release;

/*
* platform-specific code to shutdown a CPU
*
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/arm/mach-ux500/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@
/* This is called from headsmp.S to wakeup the secondary core */
extern void u8500_secondary_startup(void);

/*
* control for which core is the next to come out of the secondary
* boot "holding pen"
*/
volatile int pen_release = -1;

/*
* Write pen_release in a way that is guaranteed to be visible to all
* observers, irrespective of whether they're taking part in coherency
Expand Down
2 changes: 0 additions & 2 deletions trunk/arch/arm/mach-vexpress/hotplug.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
#include <asm/smp_plat.h>
#include <asm/cp15.h>

extern volatile int pen_release;

static inline void cpu_enter_lowpower(void)
{
unsigned int v;
Expand Down
6 changes: 0 additions & 6 deletions trunk/arch/arm/plat-versatile/platsmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@
#include <asm/smp_plat.h>
#include <asm/hardware/gic.h>

/*
* control for which core is the next to come out of the secondary
* boot "holding pen"
*/
volatile int __cpuinitdata pen_release = -1;

/*
* Write pen_release in a way that is guaranteed to be visible to all
* observers, irrespective of whether they're taking part in coherency
Expand Down

0 comments on commit 8cfb4d1

Please sign in to comment.