Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 109047
b: refs/heads/master
c: c4bd1fd
h: refs/heads/master
i:
  109045: b51e3be
  109043: 8413bb6
  109039: b90c4a8
v: v3
  • Loading branch information
Marcin Slusarz authored and Ingo Molnar committed Aug 22, 2008
1 parent 4c83956 commit 6fd8213
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 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: 3a6ddd5f18405ca92e004416af8ed44b9c9783d7
refs/heads/master: c4bd1fdab0deec0f69aeabab22075cb22ac8ad44
8 changes: 5 additions & 3 deletions trunk/arch/x86/kernel/genx2apic_uv_x.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ static __init void uv_rtc_init(void)
sn_rtc_cycles_per_second = ticks_per_sec;
}

static __init void uv_system_init(void)
static bool uv_system_inited;

void __init uv_system_init(void)
{
union uvh_si_addr_map_config_u m_n_config;
union uvh_node_id_u node_id;
Expand Down Expand Up @@ -383,6 +385,7 @@ static __init void uv_system_init(void)
map_mmr_high(max_pnode);
map_config_high(max_pnode);
map_mmioh_high(max_pnode);
uv_system_inited = true;
}

/*
Expand All @@ -391,8 +394,7 @@ static __init void uv_system_init(void)
*/
void __cpuinit uv_cpu_init(void)
{
if (!uv_node_to_blade)
uv_system_init();
BUG_ON(!uv_system_inited);

uv_blade_info[uv_numa_blade_id()].nr_online_cpus++;

Expand Down
3 changes: 3 additions & 0 deletions trunk/arch/x86/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -1221,6 +1221,9 @@ void __init native_smp_prepare_cpus(unsigned int max_cpus)
printk(KERN_INFO "CPU%d: ", 0);
print_cpu_info(&cpu_data(0));
setup_boot_clock();

if (is_uv_system())
uv_system_init();
out:
preempt_enable();
}
Expand Down
1 change: 1 addition & 0 deletions trunk/include/asm-x86/genapic_32.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ enum uv_system_type {UV_NONE, UV_LEGACY_APIC, UV_X2APIC, UV_NON_UNIQUE_APIC};
#define get_uv_system_type() UV_NONE
#define is_uv_system() 0
#define uv_wakeup_secondary(a, b) 1
#define uv_system_init() do {} while (0)


#endif
1 change: 1 addition & 0 deletions trunk/include/asm-x86/genapic_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ extern int is_uv_system(void);
extern struct genapic apic_x2apic_uv_x;
DECLARE_PER_CPU(int, x2apic_extra_bits);
extern void uv_cpu_init(void);
extern void uv_system_init(void);
extern int uv_wakeup_secondary(int phys_apicid, unsigned int start_rip);

extern void setup_apic_routing(void);
Expand Down

0 comments on commit 6fd8213

Please sign in to comment.