Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a507ac4b01ed379a74eca5060f3553c4a4e5854c
Commit:     a507ac4b01ed379a74eca5060f3553c4a4e5854c
Parent:     4e581ff165f26ba3d37a4a836b2e3add47bec72f
Author:     Mattia Dongili <[EMAIL PROTECTED]>
AuthorDate: Fri Dec 15 19:52:45 2006 +0100
Committer:  Dave Jones <[EMAIL PROTECTED]>
CommitDate: Sun Dec 17 18:09:26 2006 -0500

    [CPUFREQ] set policy->curfreq on initialization
    
    Check the correct variable and set policy->cur upon acpi-cpufreq
    initialization to allow the userspace governor to be used as default.
    
    Signed-off-by: Mattia Dongili <[EMAIL PROTECTED]>
    Acked-by: "Pallipadi, Venkatesh" <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Dave Jones <[EMAIL PROTECTED]>
---
 arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c 
b/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
index 8e0b995..b735458 100644
--- a/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
+++ b/arch/i386/kernel/cpu/cpufreq/acpi-cpufreq.c
@@ -682,14 +682,14 @@ static int acpi_cpufreq_cpu_init(struct cpufreq_policy 
*policy)
        if (result)
                goto err_freqfree;
 
-       switch (data->cpu_feature) {
+       switch (perf->control_register.space_id) {
        case ACPI_ADR_SPACE_SYSTEM_IO:
                /* Current speed is unknown and not detectable by IO port */
                policy->cur = acpi_cpufreq_guess_freq(data, policy->cpu);
                break;
        case ACPI_ADR_SPACE_FIXED_HARDWARE:
                acpi_cpufreq_driver.get = get_cur_freq_on_cpu;
-               get_cur_freq_on_cpu(cpu);
+               policy->cur = get_cur_freq_on_cpu(cpu);
                break;
        default:
                break;
-
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