History

Merge branch 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6

* 'release' of git://git.kernel.org/pub/scm/linux/kernel/git/lenb/linux-acpi-2.6: ACPI: Be in TS_POLLING state during mwait based C-state entry ACPI: Fix regression where _PPC is not read at boot even when ignore_ppc=0 acer-wmi: Respect current backlight level when loading

Linus Torvalds committed 16 years ago

Commit be64c972 parents 34e3f91 b2cb9dc3 files · +22 −14Browse files

Unified · Split

3 files
  1. drivers/acpi/processor_idle.c +16 −12
  2. drivers/acpi/processor_perflib.c +5 −1
  3. drivers/platform/x86/acer-wmi.c +1 −1
drivers/acpi/processor_idle.c+16−12
@@ -880,12 +880,14 @@ static int acpi_idle_enter_simple(struct cpuidle_device *dev, · 879 unmodified lines
880880 return(acpi_idle_enter_c1(dev, state));
881881
882882 local_irq_disable();
883− current_thread_info()->status &= ~TS_POLLING;
884− /*
885− * TS_POLLING-cleared state must be visible before we test
886− * NEED_RESCHED:
887− */
888− smp_mb();
883+ if (cx->entry_method != ACPI_CSTATE_FFH) {
884+ current_thread_info()->status &= ~TS_POLLING;
885+ /*
886+ * TS_POLLING-cleared state must be visible before we test
887+ * NEED_RESCHED:
888+ */
889+ smp_mb();
890+ }
889891
890892 if (unlikely(need_resched())) {
891893 current_thread_info()->status |= TS_POLLING;
@@ -965,12 +967,14 @@ static int acpi_idle_enter_bm(struct cpuidle_device *dev, · 73 unmodified lines
965967 }
966968
967969 local_irq_disable();
968− current_thread_info()->status &= ~TS_POLLING;
969− /*
970− * TS_POLLING-cleared state must be visible before we test
971− * NEED_RESCHED:
972− */
973− smp_mb();
970+ if (cx->entry_method != ACPI_CSTATE_FFH) {
971+ current_thread_info()->status &= ~TS_POLLING;
972+ /*
973+ * TS_POLLING-cleared state must be visible before we test
974+ * NEED_RESCHED:
975+ */
976+ smp_mb();
977+ }
974978
975979 if (unlikely(need_resched())) {
976980 current_thread_info()->status |= TS_POLLING;
drivers/acpi/processor_perflib.c+5−1
@@ -413,7 +413,11 @@ static int acpi_processor_get_performance_info(struct acpi_processor *pr) · 412 unmodified lines
413413 if (result)
414414 goto update_bios;
415415
416− return 0;
416+ /* We need to call _PPC once when cpufreq starts */
417+ if (ignore_ppc != 1)
418+ result = acpi_processor_get_platform_limit(pr);
419+
420+ return result;
417421
418422 /*
419423 * Having _PPC but missing frequencies (_PSS, _PCT) is a very good hint that
drivers/platform/x86/acer-wmi.c+1−1
@@ -934,7 +934,7 @@ static int __devinit acer_backlight_init(struct device *dev) · 933 unmodified lines
934934 acer_backlight_device = bd;
935935
936936 bd->props.power = FB_BLANK_UNBLANK;
937− bd->props.brightness = max_brightness;
937+ bd->props.brightness = read_brightness(bd);
938938 bd->props.max_brightness = max_brightness;
939939 backlight_update_status(bd);
940940 return 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t