Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=689eba77cbd0cfaaa3687cbe23e8b534f8ae0ebb
Commit:     689eba77cbd0cfaaa3687cbe23e8b534f8ae0ebb
Parent:     e8666b2718fdb5bf0ea7c3126f7e292bbbf2946b
Author:     RafaƂ Bilski <[EMAIL PROTECTED]>
AuthorDate: Thu Jun 7 22:31:24 2007 +0200
Committer:  Dave Jones <[EMAIL PROTECTED]>
CommitDate: Thu Jun 21 12:57:53 2007 -0400

    [CPUFREQ] Longhaul - Proper register access
    
    In previous commit I used u32 for u16 register.
    This code will work only when ACPI block address is set.
    For now it is only for VT8235 and VT8237.
    
    Signed-off-by: Rafal Bilski <[EMAIL PROTECTED]>
    Signed-off-by: Dave Jones <[EMAIL PROTECTED]>
---
 arch/i386/kernel/cpu/cpufreq/longhaul.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/arch/i386/kernel/cpu/cpufreq/longhaul.c 
b/arch/i386/kernel/cpu/cpufreq/longhaul.c
index 2841735..8eca59d 100644
--- a/arch/i386/kernel/cpu/cpufreq/longhaul.c
+++ b/arch/i386/kernel/cpu/cpufreq/longhaul.c
@@ -247,7 +247,7 @@ static void longhaul_setstate(unsigned int table_index)
        struct cpufreq_freqs freqs;
        unsigned long flags;
        unsigned int pic1_mask, pic2_mask;
-       u32 bm_status = 0;
+       u16 bm_status = 0;
        u32 bm_timeout = 1000;
        unsigned int dir = 0;
 
@@ -281,14 +281,14 @@ static void longhaul_setstate(unsigned int table_index)
        outb(0xFE,0x21);        /* TMR0 only */
 
        /* Wait while PCI bus is busy. */
-       if (longhaul_flags & USE_NORTHBRIDGE
-           || ((pr != NULL) && pr->flags.bm_control)) {
-               bm_status = inl(acpi_regs_addr);
+       if (acpi_regs_addr && (longhaul_flags & USE_NORTHBRIDGE
+           || ((pr != NULL) && pr->flags.bm_control))) {
+               bm_status = inw(acpi_regs_addr);
                bm_status &= 1 << 4;
                while (bm_status && bm_timeout) {
-                       outl(1 << 4, acpi_regs_addr);
+                       outw(1 << 4, acpi_regs_addr);
                        bm_timeout--;
-                       bm_status = inl(acpi_regs_addr);
+                       bm_status = inw(acpi_regs_addr);
                        bm_status &= 1 << 4;
                }
        }
-
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