]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
Patch needed bug fix as pointed out by Andi.
authorChris Wright <chrisw@osdl.org>
Thu, 11 Aug 2005 23:49:23 +0000 (16:49 -0700)
committerChris Wright <chrisw@osdl.org>
Thu, 11 Aug 2005 23:49:23 +0000 (16:49 -0700)
review/x86_64-fix-smpboot-timing-problem.patch

index 1d3da4a2948e348bf68195ad1873909cb58b3f3c..bd2382886e00fbd50efbbcd2f76c486e51f56f22 100644 (file)
@@ -27,11 +27,17 @@ it fixes it for the right reasons.
 
 Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
 Signed-off-by: Andi Kleen <ak@suse.de>
+Signed-off-by: Chris Wright <chrisw@osdl.org>
+---
+ arch/x86_64/kernel/smp.c     |   65 +++++++++++++++++++++++++++++++++++++++++++
+ arch/x86_64/kernel/smpboot.c |   21 +++++++------
+ include/asm-x86_64/smp.h     |    2 +
+ 3 files changed, 79 insertions(+), 9 deletions(-)
 
-Index: linux-2.6.12/arch/x86_64/kernel/smp.c
+Index: linux-2.6.12.y/arch/x86_64/kernel/smp.c
 ===================================================================
---- linux-2.6.12.orig/arch/x86_64/kernel/smp.c
-+++ linux-2.6.12/arch/x86_64/kernel/smp.c
+--- linux-2.6.12.y.orig/arch/x86_64/kernel/smp.c
++++ linux-2.6.12.y/arch/x86_64/kernel/smp.c
 @@ -284,6 +284,71 @@ struct call_data_struct {
  static struct call_data_struct * call_data;
  
@@ -104,10 +110,10 @@ Index: linux-2.6.12/arch/x86_64/kernel/smp.c
   * this function sends a 'generic call function' IPI to all other CPUs
   * in the system.
   */
-Index: linux-2.6.12/arch/x86_64/kernel/smpboot.c
+Index: linux-2.6.12.y/arch/x86_64/kernel/smpboot.c
 ===================================================================
---- linux-2.6.12.orig/arch/x86_64/kernel/smpboot.c
-+++ linux-2.6.12/arch/x86_64/kernel/smpboot.c
+--- linux-2.6.12.y.orig/arch/x86_64/kernel/smpboot.c
++++ linux-2.6.12.y/arch/x86_64/kernel/smpboot.c
 @@ -202,9 +202,6 @@ static __cpuinit void sync_master(void *
  {
        unsigned long flags, i;
@@ -161,14 +167,14 @@ Index: linux-2.6.12/arch/x86_64/kernel/smpboot.c
 -      printk(KERN_INFO "CPU %d: Syncing TSC to CPU %u.\n", smp_processor_id(),
 -                      boot_cpu_id);
 -      sync_tsc();
-+      sync_tsc(boot_cpu_id);
++      sync_tsc(0);
  }
  
  static __init int notscsync_setup(char *s)
-Index: linux-2.6.12/include/asm-x86_64/smp.h
+Index: linux-2.6.12.y/include/asm-x86_64/smp.h
 ===================================================================
---- linux-2.6.12.orig/include/asm-x86_64/smp.h
-+++ linux-2.6.12/include/asm-x86_64/smp.h
+--- linux-2.6.12.y.orig/include/asm-x86_64/smp.h
++++ linux-2.6.12.y/include/asm-x86_64/smp.h
 @@ -46,6 +46,8 @@ extern int pic_mode;
  extern int smp_num_siblings;
  extern void smp_flush_tlb(void);