Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67415
b: refs/heads/master
c: 048c8bc
h: refs/heads/master
i:
  67413: 838006c
  67411: 1351c30
  67407: 20d1e27
v: v3
  • Loading branch information
Hugh Dickins authored and Paul Mackerras committed Oct 3, 2007
1 parent 0d268ba commit 34d5c9a
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 6 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: 5669c3cf19fbadaa9120b59914beec8431277efe
refs/heads/master: 048c8bc90e53bf1f5feec020a7d482da94894e93
2 changes: 1 addition & 1 deletion trunk/arch/powerpc/kernel/lparcfg.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static int iseries_lparcfg_data(struct seq_file *m, void *v)
int processors, max_processors;
unsigned long purr = get_purr();

shared = (int)(get_lppaca()->shared_proc);
shared = (int)(local_paca->lppaca_ptr->shared_proc);

seq_printf(m, "system_active_processors=%d\n",
(int)HvLpConfig_getSystemPhysicalProcessors());
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-powerpc/io.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ extern unsigned long pci_dram_offset;
*/

#ifdef CONFIG_PPC64
#define IO_SET_SYNC_FLAG() do { get_paca()->io_sync = 1; } while(0)
#define IO_SET_SYNC_FLAG() do { local_paca->io_sync = 1; } while(0)
#else
#define IO_SET_SYNC_FLAG()
#endif
Expand Down
11 changes: 11 additions & 0 deletions trunk/include/asm-powerpc/paca.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,18 @@
#include <asm/mmu.h>

register struct paca_struct *local_paca asm("r13");

#if defined(CONFIG_DEBUG_PREEMPT) && defined(CONFIG_SMP)
extern unsigned int debug_smp_processor_id(void); /* from linux/smp.h */
/*
* Add standard checks that preemption cannot occur when using get_paca():
* otherwise the paca_struct it points to may be the wrong one just after.
*/
#define get_paca() ((void) debug_smp_processor_id(), local_paca)
#else
#define get_paca() local_paca
#endif

#define get_lppaca() (get_paca()->lppaca_ptr)
#define get_slb_shadow() (get_paca()->slb_shadow_ptr)

Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-powerpc/percpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
/* var is in discarded region: offset to particular copy we want */
#define per_cpu(var, cpu) (*RELOC_HIDE(&per_cpu__##var, __per_cpu_offset(cpu)))
#define __get_cpu_var(var) (*RELOC_HIDE(&per_cpu__##var, __my_cpu_offset()))
#define __raw_get_cpu_var(var) (*RELOC_HIDE(&per_cpu__##var, __my_cpu_offset()))
#define __raw_get_cpu_var(var) (*RELOC_HIDE(&per_cpu__##var, local_paca->data_offset))

/* A macro to avoid #include hell... */
#define percpu_modcopy(pcpudst, src, size) \
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-powerpc/smp.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ void generic_mach_cpu_die(void);
#endif

#ifdef CONFIG_PPC64
#define raw_smp_processor_id() (get_paca()->paca_index)
#define raw_smp_processor_id() (local_paca->paca_index)
#define hard_smp_processor_id() (get_paca()->hw_cpu_id)
#else
/* 32-bit */
Expand Down
2 changes: 1 addition & 1 deletion trunk/lib/Kconfig.debug
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ config SLUB_DEBUG_ON

config DEBUG_PREEMPT
bool "Debug preemptible kernel"
depends on DEBUG_KERNEL && PREEMPT && TRACE_IRQFLAGS_SUPPORT
depends on DEBUG_KERNEL && PREEMPT && (TRACE_IRQFLAGS_SUPPORT || PPC64)
default y
help
If you say Y here then the kernel will use a debug variant of the
Expand Down

0 comments on commit 34d5c9a

Please sign in to comment.