Commit d643d8e6 authored by David S. Miller's avatar David S. Miller

SPARC64: Port to new cpu hotplug startup sequence.

parent 1225fb90
This diff is collapsed.
...@@ -145,6 +145,8 @@ EXPORT_SYMBOL(cpu_data); ...@@ -145,6 +145,8 @@ EXPORT_SYMBOL(cpu_data);
/* CPU online map and active count. */ /* CPU online map and active count. */
EXPORT_SYMBOL(cpu_online_map); EXPORT_SYMBOL(cpu_online_map);
EXPORT_SYMBOL(sparc64_num_cpus_online); EXPORT_SYMBOL(sparc64_num_cpus_online);
EXPORT_SYMBOL(phys_cpu_present_map);
EXPORT_SYMBOL(sparc64_num_cpus_possible);
/* Spinlock debugging library, optional. */ /* Spinlock debugging library, optional. */
#ifdef CONFIG_DEBUG_SPINLOCK #ifdef CONFIG_DEBUG_SPINLOCK
......
...@@ -65,11 +65,19 @@ extern cpuinfo_sparc cpu_data[NR_CPUS]; ...@@ -65,11 +65,19 @@ extern cpuinfo_sparc cpu_data[NR_CPUS];
#include <asm/atomic.h> #include <asm/atomic.h>
extern unsigned char boot_cpu_id; extern unsigned char boot_cpu_id;
extern unsigned long phys_cpu_present_map;
#define cpu_possible(cpu) (phys_cpu_present_map & (1UL << (cpu)))
extern unsigned long cpu_online_map; extern unsigned long cpu_online_map;
#define cpu_online(cpu) (cpu_online_map & (1UL << (cpu))) #define cpu_online(cpu) (cpu_online_map & (1UL << (cpu)))
extern atomic_t sparc64_num_cpus_online; extern atomic_t sparc64_num_cpus_online;
#define num_online_cpus() (atomic_read(&sparc64_num_cpus_online)) #define num_online_cpus() (atomic_read(&sparc64_num_cpus_online))
extern atomic_t sparc64_num_cpus_possible;
#define num_possible_cpus() (atomic_read(&sparc64_num_cpus_possible))
static inline int any_online_cpu(unsigned long mask) static inline int any_online_cpu(unsigned long mask)
{ {
if ((mask &= cpu_online_map) != 0UL) if ((mask &= cpu_online_map) != 0UL)
...@@ -81,10 +89,6 @@ static inline int any_online_cpu(unsigned long mask) ...@@ -81,10 +89,6 @@ static inline int any_online_cpu(unsigned long mask)
* General functions that each host system must provide. * General functions that each host system must provide.
*/ */
extern void smp_callin(void);
extern void smp_boot_cpus(void);
extern void smp_store_cpu_info(int id);
extern __inline__ int hard_smp_processor_id(void) extern __inline__ int hard_smp_processor_id(void)
{ {
if (tlb_type == cheetah) { if (tlb_type == cheetah) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment