projects/linux·commit 4314652b

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

4314652b · Linus Torvalds <[email protected]> · 2008-07-16 14:52:12 -07:00

* 'release-2.6.27' of git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-acpi-merge-2.6: (87 commits)
  Fix FADT parsing
  Add the ability to reset the machine using the RESET_REG in ACPI's FADT table.
  ACPI: use dev_printk when possible
  PNPACPI: add support for HP vendor-specific CCSR descriptors
  PNP: avoid legacy IDE IRQs
  PNP: convert resource options to single linked list
  ISAPNP: handle independent options following dependent ones
  PNP: remove extra 0x100 bit from option priority
  PNP: support optional IRQ resources
  PNP: rename pnp_register_*_resource() local variables
  PNPACPI: ignore _PRS interrupt numbers larger than PNP_IRQ_NR
  PNP: centralize resource option allocations
  PNP: remove redundant pnp_can_configure() check
  PNP: make resource assignment functions return 0 (success) or -EBUSY (failure)
  PNP: in debug resource dump, make empty list obvious
  PNP: improve resource assignment debug
  PNP: increase I/O port & memory option address sizes
  PNP: introduce pnp_irq_mask_t typedef
  PNP: make resource option structures private to PNP subsystem
  PNP: define PNP-specific IORESOURCE_IO_* flags alongside IRQ, DMA, MEM
  ...
Commit
4314652bb41df08ad65bd25176ba1dfd24b14a51
Parents
d442cc44 · 01a5bba5

Merge commit. Changes below are compared with the first parent: d442cc44.

Changes

128 files changed · +4330 −2449

FileStatusAddDelContent
Documentation/ABI/testing/sysfs-firmware-acpimodified+87−40View file
Documentation/kernel-parameters.txtmodified+4−1View file
Documentation/laptops/acer-wmi.txtmodified+0−2View file
MAINTAINERSmodified+18−7View file
arch/ia64/kernel/process.cmodified+4−0View file
arch/x86/kernel/acpi/processor.cmodified+6−0View file
arch/x86/kernel/process.cmodified+27−1View file
arch/x86/mm/srat_32.cmodified+1−2View file
drivers/acpi/Makefilemodified+1−1View file
drivers/acpi/bay.cmodified+3−0View file
drivers/acpi/bus.cmodified+1−1View file
drivers/acpi/dispatcher/dsinit.cmodified+1−1View file
drivers/acpi/dispatcher/dsmethod.cmodified+0−1View file
drivers/acpi/dispatcher/dsopcode.cmodified+3−19View file
drivers/acpi/dispatcher/dswexec.cmodified+0−8View file
drivers/acpi/dispatcher/dswstate.cmodified+7−13View file
drivers/acpi/dock.cmodified+3−0View file
drivers/acpi/events/evevent.cmodified+3−3View file
drivers/acpi/events/evgpe.cmodified+18−18View file
drivers/acpi/events/evgpeblk.cmodified+10−8View file
drivers/acpi/events/evmisc.cmodified+2−2View file
drivers/acpi/events/evregion.cmodified+2−3View file
drivers/acpi/events/evrgnini.cmodified+1−1View file
drivers/acpi/events/evxfevnt.cmodified+15−3View file
drivers/acpi/executer/exconfig.cmodified+9−8View file
drivers/acpi/executer/exconvrt.cmodified+6−6View file
drivers/acpi/executer/excreate.cmodified+0−2View file
drivers/acpi/executer/exdump.cmodified+26−41View file
drivers/acpi/executer/exfldio.cmodified+5−4View file
drivers/acpi/executer/exmisc.cmodified+4−4View file
drivers/acpi/executer/exprep.cmodified+4−4View file
drivers/acpi/executer/exregion.cmodified+1−1View file
drivers/acpi/executer/exresop.cmodified+4−0View file
drivers/acpi/executer/exstore.cmodified+0−6View file
drivers/acpi/fan.cmodified+7−1View file
drivers/acpi/glue.cmodified+3−0View file
drivers/acpi/hardware/hwgpe.cmodified+49−3View file
drivers/acpi/namespace/nsdump.cmodified+3−3View file
drivers/acpi/namespace/nseval.cmodified+35−0View file
drivers/acpi/namespace/nsinit.cmodified+0−1View file
drivers/acpi/namespace/nsload.cmodified+1−2View file
drivers/acpi/namespace/nsparse.cmodified+7−8View file
drivers/acpi/namespace/nsutils.cmodified+25−25View file
drivers/acpi/namespace/nsxfeval.cmodified+1−2View file
drivers/acpi/numa.cmodified+2−2View file
drivers/acpi/parser/psargs.cmodified+2−2View file
drivers/acpi/parser/psxface.cmodified+2−2View file
drivers/acpi/pci_irq.cmodified+17−21View file
drivers/acpi/processor_core.cmodified+60−15View file
drivers/acpi/processor_idle.cmodified+30−4View file
drivers/acpi/processor_perflib.cmodified+9−9View file
drivers/acpi/processor_throttling.cmodified+27−11View file
drivers/acpi/reboot.cadded+50−0View file
drivers/acpi/resources/rscalc.cmodified+2−2View file
drivers/acpi/resources/rscreate.cmodified+29−12View file
drivers/acpi/resources/rsmisc.cmodified+1−1View file
drivers/acpi/resources/rsutils.cmodified+6−7View file
drivers/acpi/scan.cmodified+37−25View file
drivers/acpi/sleep/main.cmodified+4−35View file
drivers/acpi/system.cmodified+156−13View file
drivers/acpi/tables/tbfadt.cmodified+14−9View file
drivers/acpi/tables/tbfind.cmodified+2−3View file
drivers/acpi/tables/tbinstal.cmodified+14−16View file
drivers/acpi/tables/tbutils.cmodified+7−8View file
drivers/acpi/tables/tbxface.cmodified+13−15View file
drivers/acpi/tables/tbxfroot.cmodified+2−2View file
drivers/acpi/utilities/utalloc.cmodified+3−2View file
drivers/acpi/utilities/utcopy.cmodified+2−2View file
drivers/acpi/utilities/utdebug.cmodified+33−21View file
drivers/acpi/utilities/utdelete.cmodified+1−1View file
drivers/acpi/utilities/uteval.cmodified+2−3View file
drivers/acpi/utilities/utmisc.cmodified+18−21View file
drivers/acpi/utilities/utmutex.cmodified+2−2View file
drivers/acpi/utilities/utobject.cmodified+5−4View file
drivers/acpi/video.cmodified+73−50View file
drivers/char/apm-emulation.cmodified+207−139View file
drivers/misc/Kconfigmodified+30−1View file
drivers/misc/Makefilemodified+3−2View file
drivers/misc/acer-wmi.cmodified+135−10View file
drivers/misc/compal-laptop.cadded+404−0View file
drivers/misc/eeepc-laptop.cmodified+2−2View file
drivers/misc/fujitsu-laptop.cmodified+774−51View file
drivers/pci/pci-acpi.cmodified+2−4View file
drivers/pci/pci.cmodified+2−2View file
drivers/pci/pci.hmodified+1−2View file
drivers/pnp/base.hmodified+119−29View file
drivers/pnp/core.cmodified+19−10View file
drivers/pnp/interface.cmodified+89−118View file
drivers/pnp/isapnp/core.cmodified+97−156View file
drivers/pnp/manager.cmodified+131−283View file
drivers/pnp/pnpacpi/core.cmodified+1−3View file
drivers/pnp/pnpacpi/rsparser.cmodified+287−205View file
drivers/pnp/pnpbios/rsparser.cmodified+146−128View file
drivers/pnp/quirks.cmodified+156−151View file
drivers/pnp/resource.cmodified+203−251View file
drivers/pnp/support.cmodified+146−25View file
drivers/pnp/system.cmodified+2−2View file
drivers/serial/8250_pnp.cmodified+7−17View file
include/acpi/acconfig.hmodified+1−1View file
include/acpi/acdisasm.hmodified+1−0View file
include/acpi/acdispat.hmodified+1−1View file
include/acpi/acexcep.hmodified+8−2View file
include/acpi/acglobal.hmodified+1−1View file
include/acpi/achware.hmodified+2−2View file
include/acpi/acinterp.hmodified+1−4View file
include/acpi/aclocal.hmodified+3−3View file
include/acpi/acmacros.hmodified+18−20View file
include/acpi/acnamesp.hmodified+15−15View file
include/acpi/acpi_bus.hmodified+2−2View file
include/acpi/acpiosxf.hmodified+1−1View file
include/acpi/acpixf.hmodified+4−8View file
include/acpi/acstruct.hmodified+2−8View file
include/acpi/actables.hmodified+12−15View file
include/acpi/actbl1.hmodified+21−2View file
include/acpi/actypes.hmodified+6−10View file
include/acpi/acutils.hmodified+40−30View file
include/acpi/processor.hmodified+1−1View file
include/acpi/reboot.hmodified+8−6View file
include/asm-ia64/processor.hmodified+2−0View file
include/asm-x86/processor.hmodified+2−0View file
include/linux/freezer.hmodified+10−0View file
include/linux/ioport.hmodified+5−0View file
include/linux/pnp.hmodified+78−68View file
include/linux/sched.hmodified+1−0View file
kernel/cpu.cmodified+1−0View file
kernel/kthread.cmodified+1−1View file
kernel/power/process.cmodified+42−55View file
kernel/power/user.cmodified+45−26View file

Only the first 600 diff lines are shown. Download the complete patch.

Documentation/ABI/testing/sysfs-firmware-acpi

View file
diff --git a/Documentation/ABI/testing/sysfs-firmware-acpi b/Documentation/ABI/testing/sysfs-firmware-acpi
index 9470ed9..f27be7d 100644
--- a/Documentation/ABI/testing/sysfs-firmware-acpi
+++ b/Documentation/ABI/testing/sysfs-firmware-acpi
@@ -29,46 +29,46 @@ Description:
$ cd /sys/firmware/acpi/interrupts
$ grep . *
- error:0
- ff_gbl_lock:0
- ff_pmtimer:0
- ff_pwr_btn:0
- ff_rt_clk:0
- ff_slp_btn:0
- gpe00:0
- gpe01:0
- gpe02:0
- gpe03:0
- gpe04:0
- gpe05:0
- gpe06:0
- gpe07:0
- gpe08:0
- gpe09:174
- gpe0A:0
- gpe0B:0
- gpe0C:0
- gpe0D:0
- gpe0E:0
- gpe0F:0
- gpe10:0
- gpe11:60
- gpe12:0
- gpe13:0
- gpe14:0
- gpe15:0
- gpe16:0
- gpe17:0
- gpe18:0
- gpe19:7
- gpe1A:0
- gpe1B:0
- gpe1C:0
- gpe1D:0
- gpe1E:0
- gpe1F:0
- gpe_all:241
- sci:241
+ error: 0
+ ff_gbl_lock: 0 enable
+ ff_pmtimer: 0 invalid
+ ff_pwr_btn: 0 enable
+ ff_rt_clk: 2 disable
+ ff_slp_btn: 0 invalid
+ gpe00: 0 invalid
+ gpe01: 0 enable
+ gpe02: 108 enable
+ gpe03: 0 invalid
+ gpe04: 0 invalid
+ gpe05: 0 invalid
+ gpe06: 0 enable
+ gpe07: 0 enable
+ gpe08: 0 invalid
+ gpe09: 0 invalid
+ gpe0A: 0 invalid
+ gpe0B: 0 invalid
+ gpe0C: 0 invalid
+ gpe0D: 0 invalid
+ gpe0E: 0 invalid
+ gpe0F: 0 invalid
+ gpe10: 0 invalid
+ gpe11: 0 invalid
+ gpe12: 0 invalid
+ gpe13: 0 invalid
+ gpe14: 0 invalid
+ gpe15: 0 invalid
+ gpe16: 0 invalid
+ gpe17: 1084 enable
+ gpe18: 0 enable
+ gpe19: 0 invalid
+ gpe1A: 0 invalid
+ gpe1B: 0 invalid
+ gpe1C: 0 invalid
+ gpe1D: 0 invalid
+ gpe1E: 0 invalid
+ gpe1F: 0 invalid
+ gpe_all: 1192
+ sci: 1194
sci - The total number of times the ACPI SCI
has claimed an interrupt.
@@ -89,6 +89,13 @@ Description:
error - an interrupt that can't be accounted for above.
+ invalid: it's either a wakeup GPE or a GPE/Fixed Event that
+ doesn't have an event handler.
+
+ disable: the GPE/Fixed Event is valid but disabled.
+
+ enable: the GPE/Fixed Event is valid and enabled.
+
Root has permission to clear any of these counters. Eg.
# echo 0 > gpe11
@@ -97,3 +104,43 @@ Description:
None of these counters has an effect on the function
of the system, they are simply statistics.
+
+ Besides this, user can also write specific strings to these files
+ to enable/disable/clear ACPI interrupts in user space, which can be
+ used to debug some ACPI interrupt storm issues.
+
+ Note that only writting to VALID GPE/Fixed Event is allowed,
+ i.e. user can only change the status of runtime GPE and
+ Fixed Event with event handler installed.
+
+ Let's take power button fixed event for example, please kill acpid
+ and other user space applications so that the machine won't shutdown
+ when pressing the power button.
+ # cat ff_pwr_btn
+ 0
+ # press the power button for 3 times;
+ # cat ff_pwr_btn
+ 3
+ # echo disable > ff_pwr_btn
+ # cat ff_pwr_btn
+ disable
+ # press the power button for 3 times;
+ # cat ff_pwr_btn
+ disable
+ # echo enable > ff_pwr_btn
+ # cat ff_pwr_btn
+ 4
+ /*
+ * this is because the status bit is set even if the enable bit is cleared,
+ * and it triggers an ACPI fixed event when the enable bit is set again
+ */
+ # press the power button for 3 times;
+ # cat ff_pwr_btn
+ 7
+ # echo disable > ff_pwr_btn
+ # press the power button for 3 times;
+ # echo clear > ff_pwr_btn /* clear the status bit */
+ # echo disable > ff_pwr_btn
+ # cat ff_pwr_btn
+ 7
+

Documentation/kernel-parameters.txt

View file
diff --git a/Documentation/kernel-parameters.txt b/Documentation/kernel-parameters.txt
index 312fe77..5e497d1 100644
--- a/Documentation/kernel-parameters.txt
+++ b/Documentation/kernel-parameters.txt
@@ -818,7 +818,7 @@ and is between 256 and 4096 characters. It is defined in the file
See Documentation/ide/ide.txt.
idle= [X86]
- Format: idle=poll or idle=mwait
+ Format: idle=poll or idle=mwait, idle=halt, idle=nomwait
Poll forces a polling idle loop that can slightly improves the performance
of waking up a idle CPU, but will use a lot of power and make the system
run hot. Not recommended.
@@ -826,6 +826,9 @@ and is between 256 and 4096 characters. It is defined in the file
to not use it because it doesn't save as much power as a normal idle
loop use the MONITOR/MWAIT idle loop anyways. Performance should be the same
as idle=poll.
+ idle=halt. Halt is forced to be used for CPU idle.
+ In such case C2/C3 won't be used again.
+ idle=nomwait. Disable mwait for CPU C-states
ide-pci-generic.all-generic-ide [HW] (E)IDE subsystem
Claim all unknown PCI IDE storage controllers.

Documentation/laptops/acer-wmi.txt

View file
diff --git a/Documentation/laptops/acer-wmi.txt b/Documentation/laptops/acer-wmi.txt
index 79b7dbd..69b5dd4 100644
--- a/Documentation/laptops/acer-wmi.txt
+++ b/Documentation/laptops/acer-wmi.txt
@@ -174,8 +174,6 @@ The LED is exposed through the LED subsystem, and can be found in:
The mail LED is autodetected, so if you don't have one, the LED device won't
be registered.
-If you have a mail LED that is not green, please report this to me.
-
Backlight
*********

MAINTAINERS

View file
diff --git a/MAINTAINERS b/MAINTAINERS
index ee1c56a..633bda6 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -216,8 +216,8 @@ W: http://code.google.com/p/aceracpi
S: Maintained
ACPI
-P: Len Brown
+P: Andi Kleen
W: http://www.lesswatts.org/projects/acpi/
@@ -239,8 +239,8 @@ W: http://www.lesswatts.org/projects/acpi/
S: Supported
ACPI FAN DRIVER
-P: Len Brown
+P: Zhang Rui
W: http://www.lesswatts.org/projects/acpi/
S: Supported
@@ -252,14 +252,14 @@ L: [email protected]
S: Supported
ACPI THERMAL DRIVER
-P: Len Brown
+P: Zhang Rui
W: http://www.lesswatts.org/projects/acpi/
S: Supported
ACPI VIDEO DRIVER
-P: Rui Zhang
+P: Zhang Rui
W: http://www.lesswatts.org/projects/acpi/
@@ -1160,6 +1160,11 @@ M: [email protected]
S: Supported
+COMPAL LAPTOP SUPPORT
+P: Cezary Jackiewicz
+S: Maintained
+
COMPUTONE INTELLIPORT MULTIPORT CARD
P: Michael H. Warfield
@@ -1787,6 +1792,12 @@ P: David Howells
S: Maintained
+FUJITSU LAPTOP EXTRAS
+P: Jonathan Woithe
+S: Maintained
+
FUSE: FILESYSTEM IN USERSPACE
P: Miklos Szeredi

arch/ia64/kernel/process.c

View file
diff --git a/arch/ia64/kernel/process.c b/arch/ia64/kernel/process.c
index fabaf08..3ab8373 100644
--- a/arch/ia64/kernel/process.c
+++ b/arch/ia64/kernel/process.c
@@ -55,6 +55,10 @@ void (*ia64_mark_idle)(int);
unsigned long boot_option_idle_override = 0;
EXPORT_SYMBOL(boot_option_idle_override);
+unsigned long idle_halt;
+EXPORT_SYMBOL(idle_halt);
+unsigned long idle_nomwait;
+EXPORT_SYMBOL(idle_nomwait);
void
ia64_do_show_stack (struct unw_frame_info *info, void *arg)

arch/x86/kernel/acpi/processor.c

View file
diff --git a/arch/x86/kernel/acpi/processor.c b/arch/x86/kernel/acpi/processor.c
index de2d2e4..7c074ee 100644
--- a/arch/x86/kernel/acpi/processor.c
+++ b/arch/x86/kernel/acpi/processor.c
@@ -56,6 +56,12 @@ static void init_intel_pdc(struct acpi_processor *pr, struct cpuinfo_x86 *c)
if (cpu_has(c, X86_FEATURE_ACPI))
buf[2] |= ACPI_PDC_T_FFH;
+ /*
+ * If mwait/monitor is unsupported, C2/C3_FFH will be disabled
+ */
+ if (!cpu_has(c, X86_FEATURE_MWAIT))
+ buf[2] &= ~(ACPI_PDC_C_C2C3_FFH);
+
obj->type = ACPI_TYPE_BUFFER;
obj->buffer.length = 12;
obj->buffer.pointer = (u8 *) buf;

arch/x86/kernel/process.c

View file
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c
index 7dceea9..4d629c6 100644
--- a/arch/x86/kernel/process.c
+++ b/arch/x86/kernel/process.c
@@ -7,6 +7,12 @@
#include <linux/module.h>
#include <linux/pm.h>
#include <linux/clockchips.h>
+#include <asm/system.h>
+
+unsigned long idle_halt;
+EXPORT_SYMBOL(idle_halt);
+unsigned long idle_nomwait;
+EXPORT_SYMBOL(idle_nomwait);
struct kmem_cache *task_xstate_cachep;
@@ -325,7 +331,27 @@ static int __init idle_setup(char *str)
pm_idle = poll_idle;
} else if (!strcmp(str, "mwait"))
force_mwait = 1;
- else
+ else if (!strcmp(str, "halt")) {
+ /*
+ * When the boot option of idle=halt is added, halt is
+ * forced to be used for CPU idle. In such case CPU C2/C3
+ * won't be used again.
+ * To continue to load the CPU idle driver, don't touch
+ * the boot_option_idle_override.
+ */
+ pm_idle = default_idle;
+ idle_halt = 1;
+ return 0;
+ } else if (!strcmp(str, "nomwait")) {
+ /*
+ * If the boot option of "idle=nomwait" is added,
+ * it means that mwait will be disabled for CPU C2/C3
+ * states. In such case it won't touch the variable
+ * of boot_option_idle_override.
+ */
+ idle_nomwait = 1;
+ return 0;
+ } else
return -1;
boot_option_idle_override = 1;

arch/x86/mm/srat_32.c

View file
diff --git a/arch/x86/mm/srat_32.c b/arch/x86/mm/srat_32.c
index f41d67f..1eb2973 100644
--- a/arch/x86/mm/srat_32.c
+++ b/arch/x86/mm/srat_32.c
@@ -156,10 +156,9 @@ acpi_numa_memory_affinity_init(struct acpi_srat_mem_affinity *memory_affinity)
num_memory_chunks++;
- printk(KERN_DEBUG "Memory range %08lx to %08lx (type %x)"
+ printk(KERN_DEBUG "Memory range %08lx to %08lx"
" in proximity domain %02x %s\n",
start_pfn, end_pfn,
- memory_affinity->memory_type,
pxm,
((memory_affinity->flags & ACPI_SRAT_MEM_HOT_PLUGGABLE) ?
"enabled and removable" : "enabled" ) );

drivers/acpi/Makefile

View file
diff --git a/drivers/acpi/Makefile b/drivers/acpi/Makefile
index 40b0fca..4efbe59 100644
--- a/drivers/acpi/Makefile
+++ b/drivers/acpi/Makefile
@@ -21,7 +21,7 @@ obj-$(CONFIG_X86) += blacklist.o
#
# ACPI Core Subsystem (Interpreter)
#
-obj-y += osl.o utils.o \
+obj-y += osl.o utils.o reboot.o\
dispatcher/ events/ executer/ hardware/ \
namespace/ parser/ resources/ tables/ \
utilities/

drivers/acpi/bay.c

View file
diff --git a/drivers/acpi/bay.c b/drivers/acpi/bay.c
index 61b6c5b..e6caf5d 100644
--- a/drivers/acpi/bay.c
+++ b/drivers/acpi/bay.c
@@ -380,6 +380,9 @@ static int __init bay_init(void)
if (acpi_disabled)
return -ENODEV;
+ if (acpi_disabled)
+ return -ENODEV;
+
/* look for dockable drive bays */
acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT,
ACPI_UINT32_MAX, find_bay, &bays, NULL);

drivers/acpi/bus.c

View file
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index a6dbcf4..afb3438 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -612,7 +612,7 @@ static int __init acpi_bus_init_irq(void)
return 0;
}
-acpi_native_uint acpi_gbl_permanent_mmap;
+u8 acpi_gbl_permanent_mmap;
void __init acpi_early_init(void)

drivers/acpi/dispatcher/dsinit.c

View file
diff --git a/drivers/acpi/dispatcher/dsinit.c b/drivers/acpi/dispatcher/dsinit.c
index 610b1ee..949f7c7 100644
--- a/drivers/acpi/dispatcher/dsinit.c
+++ b/drivers/acpi/dispatcher/dsinit.c
@@ -151,7 +151,7 @@ acpi_ds_init_one_object(acpi_handle obj_handle,
******************************************************************************/
acpi_status
-acpi_ds_initialize_objects(acpi_native_uint table_index,
+acpi_ds_initialize_objects(u32 table_index,
struct acpi_namespace_node * start_node)
{
acpi_status status;

drivers/acpi/dispatcher/dsmethod.c

View file
diff --git a/drivers/acpi/dispatcher/dsmethod.c b/drivers/acpi/dispatcher/dsmethod.c
index 2509809..4613b9c 100644
--- a/drivers/acpi/dispatcher/dsmethod.c
+++ b/drivers/acpi/dispatcher/dsmethod.c
@@ -377,7 +377,6 @@ acpi_ds_call_control_method(struct acpi_thread_state *thread,
}
info->parameters = &this_walk_state->operands[0];
- info->parameter_type = ACPI_PARAM_ARGS;
status = acpi_ds_init_aml_walk(next_walk_state, NULL, method_node,
obj_desc->method.aml_start,

drivers/acpi/dispatcher/dsopcode.c

View file
diff --git a/drivers/acpi/dispatcher/dsopcode.c b/drivers/acpi/dispatcher/dsopcode.c
index a818e0d..6a81c44 100644
--- a/drivers/acpi/dispatcher/dsopcode.c
+++ b/drivers/acpi/dispatcher/dsopcode.c
@@ -691,12 +691,6 @@ acpi_ds_eval_buffer_field_operands(struct acpi_walk_state *walk_state,
status = acpi_ex_resolve_operands(op->common.aml_opcode,
ACPI_WALK_OPERANDS, walk_state);
-
- ACPI_DUMP_OPERANDS(ACPI_WALK_OPERANDS, ACPI_IMODE_EXECUTE,
- acpi_ps_get_opcode_name(op->common.aml_opcode),
- walk_state->num_operands,
- "after AcpiExResolveOperands");
-
if (ACPI_FAILURE(status)) {
ACPI_ERROR((AE_INFO, "(%s) bad operand(s) (%X)",
acpi_ps_get_opcode_name(op->common.aml_opcode),
@@ -785,10 +779,6 @@ acpi_ds_eval_region_operands(struct acpi_walk_state *walk_state,
return_ACPI_STATUS(status);
}
- ACPI_DUMP_OPERANDS(ACPI_WALK_OPERANDS, ACPI_IMODE_EXECUTE,
- acpi_ps_get_opcode_name(op->common.aml_opcode),
- 1, "after AcpiExResolveOperands");
-
obj_desc = acpi_ns_get_attached_object(node);
if (!obj_desc) {
return_ACPI_STATUS(AE_NOT_EXIST);
@@ -848,7 +838,7 @@ acpi_ds_eval_table_region_operands(struct acpi_walk_state *walk_state,
union acpi_operand_object **operand;
struct acpi_namespace_node *node;
union acpi_parse_object *next_op;
- acpi_native_uint table_index;
+ u32 table_index;
struct acpi_table_header *table;
ACPI_FUNCTION_TRACE_PTR(ds_eval_table_region_operands, op);
@@ -882,10 +872,6 @@ acpi_ds_eval_table_region_operands(struct acpi_walk_state *walk_state,
return_ACPI_STATUS(status);
}
- ACPI_DUMP_OPERANDS(ACPI_WALK_OPERANDS, ACPI_IMODE_EXECUTE,
- acpi_ps_get_opcode_name(op->common.aml_opcode),
- 1, "after AcpiExResolveOperands");
-
operand = &walk_state->operands[0];
/* Find the ACPI table */
@@ -1091,10 +1077,8 @@ acpi_ds_eval_bank_field_operands(struct acpi_walk_state *walk_state,
return_ACPI_STATUS(status);
}
- ACPI_DUMP_OPERANDS(ACPI_WALK_OPERANDS, ACPI_IMODE_EXECUTE,
- acpi_ps_get_opcode_name(op->common.aml_opcode),
- 1, "after AcpiExResolveOperands");
-
+ ACPI_DUMP_OPERANDS(ACPI_WALK_OPERANDS,
+ acpi_ps_get_opcode_name(op->common.aml_opcode), 1);
/*
* Get the bank_value operand and save it
* (at Top of stack)

drivers/acpi/dispatcher/dswexec.c

View file
diff --git a/drivers/acpi/dispatcher/dswexec.c b/drivers/acpi/dispatcher/dswexec.c
index b246b96..b5072fa 100644
--- a/drivers/acpi/dispatcher/dswexec.c
+++ b/drivers/acpi/dispatcher/dswexec.c
@@ -408,14 +408,6 @@ acpi_status acpi_ds_exec_end_op(struct acpi_walk_state *walk_state)
[walk_state->
num_operands - 1]),
walk_state);
- if (ACPI_SUCCESS(status)) {
- ACPI_DUMP_OPERANDS(ACPI_WALK_OPERANDS,
- ACPI_IMODE_EXECUTE,
- acpi_ps_get_opcode_name
- (walk_state->opcode),
- walk_state->num_operands,
- "after ExResolveOperands");
- }
}
if (ACPI_SUCCESS(status)) {

drivers/acpi/dispatcher/dswstate.c

View file
diff --git a/drivers/acpi/dispatcher/dswstate.c b/drivers/acpi/dispatcher/dswstate.c
index 1386ced..b00d4af 100644
--- a/drivers/acpi/dispatcher/dswstate.c
+++ b/drivers/acpi/dispatcher/dswstate.c
@@ -70,7 +70,7 @@ acpi_status
acpi_ds_result_pop(union acpi_operand_object **object,
struct acpi_walk_state *walk_state)
{
- acpi_native_uint index;
+ u32 index;
union acpi_generic_state *state;
acpi_status status;
@@ -122,7 +122,7 @@ acpi_ds_result_pop(union acpi_operand_object **object,
ACPI_DEBUG_PRINT((ACPI_DB_EXEC,
"Obj=%p [%s] Index=%X State=%p Num=%X\n", *object,
acpi_ut_get_object_type_name(*object),
- (u32) index, walk_state, walk_state->result_count));
+ index, walk_state, walk_state->result_count));
return (AE_OK);
}
@@ -146,7 +146,7 @@ acpi_ds_result_push(union acpi_operand_object * object,
{
union acpi_generic_state *state;
acpi_status status;
- acpi_native_uint index;
+ u32 index;
ACPI_FUNCTION_NAME(ds_result_push);
@@ -400,7 +400,7 @@ void
acpi_ds_obj_stack_pop_and_delete(u32 pop_count,
struct acpi_walk_state *walk_state)
{
- acpi_native_int i;
+ s32 i;
union acpi_operand_object *obj_desc;
ACPI_FUNCTION_NAME(ds_obj_stack_pop_and_delete);
@@ -409,7 +409,7 @@ acpi_ds_obj_stack_pop_and_delete(u32 pop_count,
return;
}
- for (i = (acpi_native_int) (pop_count - 1); i >= 0; i--) {
+ for (i = (s32) pop_count - 1; i >= 0; i--) {
if (walk_state->num_operands == 0) {
return;
}
@@ -615,14 +615,8 @@ acpi_ds_init_aml_walk(struct acpi_walk_state *walk_state,
walk_state->pass_number = pass_number;
if (info) {
- if (info->parameter_type == ACPI_PARAM_GPE) {
- walk_state->gpe_event_info =
- ACPI_CAST_PTR(struct acpi_gpe_event_info,
- info->parameters);
- } else {
- walk_state->params = info->parameters;
- walk_state->caller_return_desc = &info->return_object;
- }
+ walk_state->params = info->parameters;
+ walk_state->caller_return_desc = &info->return_object;
}
status = acpi_ps_init_scope(&walk_state->parser_state, op);

drivers/acpi/dock.c

View file
diff --git a/drivers/acpi/dock.c b/drivers/acpi/dock.c
index bb7c51f..1e872e7 100644
--- a/drivers/acpi/dock.c
+++ b/drivers/acpi/dock.c
@@ -920,6 +920,9 @@ static int __init dock_init(void)
if (acpi_disabled)
return 0;
+ if (acpi_disabled)
+ return 0;
+
/* look for a dock station */
acpi_walk_namespace(ACPI_TYPE_DEVICE, ACPI_ROOT_OBJECT,
ACPI_UINT32_MAX, find_dock, &num, NULL);

drivers/acpi/events/evevent.c

View file
diff --git a/drivers/acpi/events/evevent.c b/drivers/acpi/events/evevent.c
index 5d30e5b..c56c5c6 100644
--- a/drivers/acpi/events/evevent.c
+++ b/drivers/acpi/events/evevent.c
@@ -188,7 +188,7 @@ acpi_status acpi_ev_install_xrupt_handlers(void)
static acpi_status acpi_ev_fixed_event_initialize(void)
{
- acpi_native_uint i;
+ u32 i;
acpi_status status;
/*
@@ -231,7 +231,7 @@ u32 acpi_ev_fixed_event_detect(void)
u32 int_status = ACPI_INTERRUPT_NOT_HANDLED;
u32 fixed_status;
u32 fixed_enable;
- acpi_native_uint i;
+ u32 i;
ACPI_FUNCTION_NAME(ev_fixed_event_detect);
@@ -260,7 +260,7 @@ u32 acpi_ev_fixed_event_detect(void)
/* Found an active (signalled) event */
acpi_os_fixed_event_count(i);
- int_status |= acpi_ev_fixed_event_dispatch((u32) i);

This diff is incomplete. Download the complete patch.

drivers/acpi/events/evgpe.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/events/evgpeblk.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/events/evmisc.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/events/evregion.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/events/evrgnini.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/events/evxfevnt.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/executer/exconfig.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/executer/exconvrt.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/executer/excreate.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/executer/exdump.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/executer/exfldio.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/executer/exmisc.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/executer/exprep.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/executer/exregion.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/executer/exresop.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/executer/exstore.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/fan.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/glue.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/hardware/hwgpe.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/namespace/nsdump.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/namespace/nseval.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/namespace/nsinit.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/namespace/nsload.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/namespace/nsparse.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/namespace/nsutils.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/namespace/nsxfeval.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/numa.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/parser/psargs.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/parser/psxface.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/pci_irq.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/processor_core.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/processor_idle.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/processor_perflib.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/processor_throttling.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/reboot.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/resources/rscalc.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/resources/rscreate.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/resources/rsmisc.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/resources/rsutils.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/scan.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/sleep/main.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/system.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/tables/tbfadt.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/tables/tbfind.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/tables/tbinstal.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/tables/tbutils.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/tables/tbxface.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/tables/tbxfroot.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/utilities/utalloc.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/utilities/utcopy.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/utilities/utdebug.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/utilities/utdelete.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/utilities/uteval.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/utilities/utmisc.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/utilities/utmutex.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/utilities/utobject.c

View file

This diff is incomplete. Download the complete patch.

drivers/acpi/video.c

View file

This diff is incomplete. Download the complete patch.

drivers/char/apm-emulation.c

View file

This diff is incomplete. Download the complete patch.

drivers/misc/Kconfig

View file

This diff is incomplete. Download the complete patch.

drivers/misc/Makefile

View file

This diff is incomplete. Download the complete patch.

drivers/misc/acer-wmi.c

View file

This diff is incomplete. Download the complete patch.

drivers/misc/compal-laptop.c

View file

This diff is incomplete. Download the complete patch.

drivers/misc/eeepc-laptop.c

View file

This diff is incomplete. Download the complete patch.

drivers/misc/fujitsu-laptop.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pci-acpi.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pci.c

View file

This diff is incomplete. Download the complete patch.

drivers/pci/pci.h

View file

This diff is incomplete. Download the complete patch.

drivers/pnp/base.h

View file

This diff is incomplete. Download the complete patch.

drivers/pnp/core.c

View file

This diff is incomplete. Download the complete patch.

drivers/pnp/interface.c

View file

This diff is incomplete. Download the complete patch.

drivers/pnp/isapnp/core.c

View file

This diff is incomplete. Download the complete patch.

drivers/pnp/manager.c

View file

This diff is incomplete. Download the complete patch.

drivers/pnp/pnpacpi/core.c

View file

This diff is incomplete. Download the complete patch.

drivers/pnp/pnpacpi/rsparser.c

View file

This diff is incomplete. Download the complete patch.

drivers/pnp/pnpbios/rsparser.c

View file

This diff is incomplete. Download the complete patch.

drivers/pnp/quirks.c

View file

This diff is incomplete. Download the complete patch.

drivers/pnp/resource.c

View file

This diff is incomplete. Download the complete patch.

drivers/pnp/support.c

View file

This diff is incomplete. Download the complete patch.

drivers/pnp/system.c

View file

This diff is incomplete. Download the complete patch.

drivers/serial/8250_pnp.c

View file

This diff is incomplete. Download the complete patch.

include/acpi/acconfig.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/acdisasm.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/acdispat.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/acexcep.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/acglobal.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/achware.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/acinterp.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/aclocal.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/acmacros.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/acnamesp.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/acpi_bus.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/acpiosxf.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/acpixf.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/acstruct.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/actables.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/actbl1.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/actypes.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/acutils.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/processor.h

View file

This diff is incomplete. Download the complete patch.

include/acpi/reboot.h

View file

This diff is incomplete. Download the complete patch.

include/asm-ia64/processor.h

View file

This diff is incomplete. Download the complete patch.

include/asm-x86/processor.h

View file

This diff is incomplete. Download the complete patch.

include/linux/freezer.h

View file

This diff is incomplete. Download the complete patch.

include/linux/ioport.h

View file

This diff is incomplete. Download the complete patch.

include/linux/pnp.h

View file

This diff is incomplete. Download the complete patch.

include/linux/sched.h

View file

This diff is incomplete. Download the complete patch.

kernel/cpu.c

View file

This diff is incomplete. Download the complete patch.

kernel/kthread.c

View file

This diff is incomplete. Download the complete patch.

kernel/power/process.c

View file

This diff is incomplete. Download the complete patch.

kernel/power/user.c

View file

This diff is incomplete. Download the complete patch.