Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100169
b: refs/heads/master
c: 3d88cca
h: refs/heads/master
i:
  100167: 0a760fc
v: v3
  • Loading branch information
Yinghai Lu authored and Ingo Molnar committed Jul 13, 2008
1 parent 9f0a024 commit 2d1dc4b
Show file tree
Hide file tree
Showing 5 changed files with 19 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: 7b479becdb8c1fb4ff6fbb2a4076c471c737b54c
refs/heads/master: 3d88cca7085cffce077f808f36551e9050eb9e3a
4 changes: 4 additions & 0 deletions trunk/arch/x86/kernel/cpu/intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,10 @@ static void __cpuinit init_intel(struct cpuinfo_x86 *c)

if (cpu_has_bts)
ds_init_intel(c);

#ifdef CONFIG_X86_NUMAQ
numaq_tsc_disable();
#endif
}

static unsigned int __cpuinit intel_size_cache(struct cpuinfo_x86 *c, unsigned int size)
Expand Down
7 changes: 4 additions & 3 deletions trunk/arch/x86/kernel/numaq_32.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,13 @@ int __init get_memcfg_numaq(void)
return 1;
}

static int __init numaq_tsc_disable(void)
void __init numaq_tsc_disable(void)
{
if (!found_numaq)
return -1;

if (num_online_nodes() > 1) {
printk(KERN_DEBUG "NUMAQ: disabling TSC\n");
setup_clear_cpu_cap(X86_FEATURE_TSC);
}
return 0;
}
arch_initcall(numaq_tsc_disable);
8 changes: 8 additions & 0 deletions trunk/arch/x86/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,14 @@ void __init setup_arch(char **cmdline_p)
init_cpu_to_node();
#endif

#ifdef CONFIG_X86_NUMAQ
/*
* need to check online nodes num, call it
* here before time_init/tsc_init
*/
numaq_tsc_disable();
#endif

init_apic_mappings();
ioapic_init_mappings();

Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-x86/numaq.h
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ struct sys_cfg_data {
struct eachquadmem eq[MAX_NUMNODES]; /* indexed by quad id */
};

void numaq_tsc_disable(void);

#else
static inline int get_memcfg_numaq(void)
{
Expand Down

0 comments on commit 2d1dc4b

Please sign in to comment.