Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c8f2518e390638abc8255616a40b4a28caa66a95
Commit:     c8f2518e390638abc8255616a40b4a28caa66a95
Parent:     6619a8fb594486363783cc4a8372e4d4ee4b913e
Author:     [EMAIL PROTECTED] <[EMAIL PROTECTED]>
AuthorDate: Wed Oct 17 18:04:37 2007 +0200
Committer:  Thomas Gleixner <[EMAIL PROTECTED]>
CommitDate: Wed Oct 17 20:16:14 2007 +0200

    i386: Remove local CPU logic in MTRR call to smp_call_function_single
    
    smp_call_function_single handles the call to local CPU case correctly
    now, no need to handle this in the caller.
    
    [ tglx: arch/x86 adaptation ]
    
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Andi Kleen <[EMAIL PROTECTED]>
    Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]>
    Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
---
 arch/x86/kernel/cpu/mtrr/main.c |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)

diff --git a/arch/x86/kernel/cpu/mtrr/main.c b/arch/x86/kernel/cpu/mtrr/main.c
index c48b6fe..5e4be30 100644
--- a/arch/x86/kernel/cpu/mtrr/main.c
+++ b/arch/x86/kernel/cpu/mtrr/main.c
@@ -738,13 +738,7 @@ void mtrr_ap_init(void)
  */
 void mtrr_save_state(void)
 {
-       int cpu = get_cpu();
-
-       if (cpu == 0)
-               mtrr_save_fixed_ranges(NULL);
-       else
-               smp_call_function_single(0, mtrr_save_fixed_ranges, NULL, 1, 1);
-       put_cpu();
+       smp_call_function_single(0, mtrr_save_fixed_ranges, NULL, 1, 1);
 }
 
 static int __init mtrr_init_finialize(void)
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to