Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 17983
b: refs/heads/master
c: 737c5c3
h: refs/heads/master
i:
  17981: dcb6784
  17979: feb3532
  17975: 1367291
  17967: f8e8f2e
  17951: 79bf74f
  17919: 75e8ca1
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Jan 12, 2006
1 parent f0175c2 commit c5d6560
Show file tree
Hide file tree
Showing 4 changed files with 12 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: 3c0217511313a46039137d2dab30fdb1c5a65e64
refs/heads/master: 737c5c3bde5641af9c24e3a60366674af72a43ef
8 changes: 7 additions & 1 deletion trunk/arch/x86_64/kernel/smpboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,13 @@ static __cpuinit void sync_tsc(unsigned int master)

static void __cpuinit tsc_sync_wait(void)
{
if (notscsync || !cpu_has_tsc)
/*
* When the CPU has synchronized TSCs assume the BIOS
* or the hardware already synced. Otherwise we could
* mess up a possible perfect synchronization with a
* not-quite-perfect algorithm.
*/
if (notscsync || !cpu_has_tsc || !unsynchronized_tsc())
return;
sync_tsc(0);
}
Expand Down
4 changes: 2 additions & 2 deletions trunk/arch/x86_64/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@ void __init time_init(void)
* Make an educated guess if the TSC is trustworthy and synchronized
* over all CPUs.
*/
static __init int unsynchronized_tsc(void)
__init int unsynchronized_tsc(void)
{
#ifdef CONFIG_SMP
if (oem_force_hpet_timer())
Expand All @@ -964,7 +964,7 @@ static __init int unsynchronized_tsc(void)
return 0;
#endif
/* Assume multi socket systems are not synchronized */
return num_online_cpus() > 1;
return num_present_cpus() > 1;
}

/*
Expand Down
2 changes: 2 additions & 0 deletions trunk/include/asm-x86_64/proto.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ extern void check_efer(void);

extern int unhandled_signal(struct task_struct *tsk, int sig);

extern int unsynchronized_tsc(void);

extern void select_idle_routine(const struct cpuinfo_x86 *c);

extern void gart_parse_options(char *);
Expand Down

0 comments on commit c5d6560

Please sign in to comment.