]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ACPI: don't duplicate input events on netlink
authorZhang Rui <rui.zhang@intel.com>
Wed, 22 Aug 2007 17:24:31 +0000 (01:24 +0800)
committerLen Brown <len.brown@intel.com>
Thu, 23 Aug 2007 18:27:23 +0000 (14:27 -0400)
commit962ce8ca0604af0c3c5609f7613d4ec5fcfac623
tree8a9fcb67251129a382e202759389d2b72de4b621
parentb377fd3982ad957c796758a90e2988401a884241
ACPI: don't duplicate input events on netlink

The previous events patch added a netlink event for every
user of the legacy /proc/acpi/event interface.

However, some users of /proc/acpi/event are really input events,
and they already report their events via the input layer.

Introduce a new interface, acpi_bus_generate_netlink_event(),
which is explicitly called by devices that want to repoprt
events via netlink.  This allows the input-like events
to opt-out of generating netlink events.  In summary:

events that are sent via netlink:
ac/battery/sbs
thermal
processor
thinkpad_acpi dock/bay

events that are sent via input layer:
button
video hotkey
thinkpad_acpi hotkey
asus_acpi/asus-laptop hotkey
sonypi/sonylaptop

Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/ac.c
drivers/acpi/battery.c
drivers/acpi/bus.c
drivers/acpi/event.c
drivers/acpi/processor_core.c
drivers/acpi/sbs.c
drivers/acpi/thermal.c
drivers/misc/thinkpad_acpi.c
drivers/pci/hotplug/acpiphp_ibm.c
include/acpi/acpi_bus.h