Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 35969
b: refs/heads/master
c: 2049336
h: refs/heads/master
i:
  35967: 235b6c1
v: v3
  • Loading branch information
Andi Kleen authored and Andi Kleen committed Sep 26, 2006
1 parent 7a11d34 commit bcf779d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9ddab42d1e65dfbdb14588346d47fb142090ab40
refs/heads/master: 2049336f60d297c85ac977245b9326ec00396114
6 changes: 6 additions & 0 deletions trunk/arch/x86_64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,12 @@ static void __cpuinit init_amd(struct cpuinfo_x86 *c)

/* Fix cpuid4 emulation for more */
num_cache_leaves = 3;

/* When there is only one core no need to synchronize RDTSC */
if (num_possible_cpus() == 1)
set_bit(X86_FEATURE_SYNC_RDTSC, &c->x86_capability);
else
clear_bit(X86_FEATURE_SYNC_RDTSC, &c->x86_capability);
}

static void __cpuinit detect_ht(struct cpuinfo_x86 *c)
Expand Down

0 comments on commit bcf779d

Please sign in to comment.