Merge master.kernel.org:/pub/scm/linux/kernel/git/davej/cpufreq
authorLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 00:24:34 +0000 (17:24 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Fri, 9 Sep 2005 00:24:34 +0000 (17:24 -0700)
1  2 
arch/i386/kernel/cpu/cpufreq/longhaul.c

index bf02b5026e6238ea13ff4743d856ecc5b9be5206,06aa76049b8071de0b9163d412c43d3ee1e3e0ee..8ef38544453c24cb8488d3202ed23750890d4566
@@@ -64,6 -64,8 +64,6 @@@ static int dont_scale_voltage
  #define dprintk(msg...) cpufreq_debug_printk(CPUFREQ_DEBUG_DRIVER, "longhaul", msg)
  
  
 -#define __hlt()     __asm__ __volatile__("hlt": : :"memory")
 -
  /* Clock ratios multiplied by 10 */
  static int clock_ratio[32];
  static int eblcr_table[32];
@@@ -166,9 -168,11 +166,9 @@@ static void do_powersaver(union msr_lon
        outb(0xFE,0x21);        /* TMR0 only */
        outb(0xFF,0x80);        /* delay */
  
 -      local_irq_enable();
 -
 -      __hlt();
 +      safe_halt();
        wrmsrl(MSR_VIA_LONGHAUL, longhaul->val);
 -      __hlt();
 +      halt();
  
        local_irq_disable();
  
@@@ -247,7 -251,9 +247,7 @@@ static void longhaul_setstate(unsigned 
                bcr2.bits.CLOCKMUL = clock_ratio_index;
                local_irq_disable();
                wrmsrl (MSR_VIA_BCR2, bcr2.val);
 -              local_irq_enable();
 -
 -              __hlt();
 +              safe_halt();
  
                /* Disable software clock multiplier */
                rdmsrl (MSR_VIA_BCR2, bcr2.val);
@@@ -467,11 -473,11 +467,11 @@@ static void __init longhaul_setup_volta
        }
  
        if (vrmrev==0) {
-               dprintk ("VRM 8.5 \n");
+               dprintk ("VRM 8.5\n");
                memcpy (voltage_table, vrm85scales, sizeof(voltage_table));
                numvscales = (voltage_table[maxvid]-voltage_table[minvid])/25;
        } else {
-               dprintk ("Mobile VRM \n");
+               dprintk ("Mobile VRM\n");
                memcpy (voltage_table, mobilevrmscales, sizeof(voltage_table));
                numvscales = (voltage_table[maxvid]-voltage_table[minvid])/5;
        }