diff options
author | Lin Ming <ming.m.lin@intel.com> | 2009-03-17 21:09:01 -0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-03-27 16:49:53 -0400 |
commit | fb318cbff40964999f303d50bcf541dd9ead6780 (patch) | |
tree | 0ae6b63fe6e6fd2f96b78e29e59da8074aca85c9 | |
parent | 14eecfc1195a9d16999157591ffce23acd6df8c1 (diff) |
ACPI: cpufreq: use new bit register access function
> arch/x86/kernel/cpu/cpufreq/longhaul.c: In function 'longhaul_setstate':
> arch/x86/kernel/cpu/cpufreq/longhaul.c:308: error: implicit declaration of function 'acpi_set_register'
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Compile-tested-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r-- | arch/x86/kernel/cpu/cpufreq/longhaul.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/x86/kernel/cpu/cpufreq/longhaul.c b/arch/x86/kernel/cpu/cpufreq/longhaul.c index a4cff5d6e380..4e18d5119828 100644 --- a/arch/x86/kernel/cpu/cpufreq/longhaul.c +++ b/arch/x86/kernel/cpu/cpufreq/longhaul.c | |||
@@ -303,7 +303,7 @@ retry_loop: | |||
303 | outb(3, 0x22); | 303 | outb(3, 0x22); |
304 | } else if ((pr != NULL) && pr->flags.bm_control) { | 304 | } else if ((pr != NULL) && pr->flags.bm_control) { |
305 | /* Disable bus master arbitration */ | 305 | /* Disable bus master arbitration */ |
306 | acpi_set_register(ACPI_BITREG_ARB_DISABLE, 1); | 306 | acpi_write_bit_register(ACPI_BITREG_ARB_DISABLE, 1); |
307 | } | 307 | } |
308 | switch (longhaul_version) { | 308 | switch (longhaul_version) { |
309 | 309 | ||
@@ -326,7 +326,7 @@ retry_loop: | |||
326 | case TYPE_POWERSAVER: | 326 | case TYPE_POWERSAVER: |
327 | if (longhaul_flags & USE_ACPI_C3) { | 327 | if (longhaul_flags & USE_ACPI_C3) { |
328 | /* Don't allow wakeup */ | 328 | /* Don't allow wakeup */ |
329 | acpi_set_register(ACPI_BITREG_BUS_MASTER_RLD, 0); | 329 | acpi_write_bit_register(ACPI_BITREG_BUS_MASTER_RLD, 0); |
330 | do_powersaver(cx->address, clock_ratio_index, dir); | 330 | do_powersaver(cx->address, clock_ratio_index, dir); |
331 | } else { | 331 | } else { |
332 | do_powersaver(0, clock_ratio_index, dir); | 332 | do_powersaver(0, clock_ratio_index, dir); |
@@ -339,7 +339,7 @@ retry_loop: | |||
339 | outb(0, 0x22); | 339 | outb(0, 0x22); |
340 | } else if ((pr != NULL) && pr->flags.bm_control) { | 340 | } else if ((pr != NULL) && pr->flags.bm_control) { |
341 | /* Enable bus master arbitration */ | 341 | /* Enable bus master arbitration */ |
342 | acpi_set_register(ACPI_BITREG_ARB_DISABLE, 0); | 342 | acpi_write_bit_register(ACPI_BITREG_ARB_DISABLE, 0); |
343 | } | 343 | } |
344 | outb(pic2_mask,0xA1); /* restore mask */ | 344 | outb(pic2_mask,0xA1); /* restore mask */ |
345 | outb(pic1_mask,0x21); | 345 | outb(pic1_mask,0x21); |