mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-27 09:02:06 +00:00
[PATCH] m32r smp.h gcc4 fixes
extern on physid_2_cpu[] does not belong in smp.h - the thing is static. Signed-off-by: Al Viro <viro@parcelfarce.linux.theplanet.co.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
719e5985cf
commit
e231a9c4fd
2 changed files with 1 additions and 2 deletions
|
@ -91,6 +91,7 @@ extern struct {
|
||||||
|
|
||||||
/* which physical physical ID maps to which logical CPU number */
|
/* which physical physical ID maps to which logical CPU number */
|
||||||
static volatile int physid_2_cpu[NR_CPUS];
|
static volatile int physid_2_cpu[NR_CPUS];
|
||||||
|
#define physid_to_cpu(physid) physid_2_cpu[physid]
|
||||||
|
|
||||||
/* which logical CPU number maps to which physical ID */
|
/* which logical CPU number maps to which physical ID */
|
||||||
volatile int cpu_2_physid[NR_CPUS];
|
volatile int cpu_2_physid[NR_CPUS];
|
||||||
|
|
|
@ -61,9 +61,7 @@ extern physid_mask_t phys_cpu_present_map;
|
||||||
* Some lowlevel functions might want to know about
|
* Some lowlevel functions might want to know about
|
||||||
* the real CPU ID <-> CPU # mapping.
|
* the real CPU ID <-> CPU # mapping.
|
||||||
*/
|
*/
|
||||||
extern volatile int physid_2_cpu[NR_CPUS];
|
|
||||||
extern volatile int cpu_2_physid[NR_CPUS];
|
extern volatile int cpu_2_physid[NR_CPUS];
|
||||||
#define physid_to_cpu(physid) physid_2_cpu[physid]
|
|
||||||
#define cpu_to_physid(cpu_id) cpu_2_physid[cpu_id]
|
#define cpu_to_physid(cpu_id) cpu_2_physid[cpu_id]
|
||||||
|
|
||||||
#define raw_smp_processor_id() (current_thread_info()->cpu)
|
#define raw_smp_processor_id() (current_thread_info()->cpu)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue