Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 14e04fb3 authored by Len Brown's avatar Len Brown
Browse files

ACPI: Schedule /proc/acpi/event for removal



Schedule /proc/acpi/event for removal in 6 months.

Re-name acpi_bus_generate_event() to acpi_bus_generate_proc_event()
to make sure there is no confusion that it is for /proc/acpi/event only.

Add CONFIG_ACPI_PROC_EVENT to allow removal of /proc/acpi/event.
There is no functional change if CONFIG_ACPI_PROC_EVENT=y

Signed-off-by: default avatarLen Brown <len.brown@intel.com>
parent 962ce8ca
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -197,6 +197,14 @@ Who: Len Brown <len.brown@intel.com>

---------------------------

What:	/proc/acpi/event
When:	February 2008
Why:	/proc/acpi/event has been replaced by events via the input layer
	and netlink since 2.6.23.
Who:	Len Brown <len.brown@intel.com>

---------------------------

What:	Compaq touchscreen device emulation
When:	Oct 2007
Files:	drivers/input/tsdev.c
+14 −0
Original line number Diff line number Diff line
@@ -68,6 +68,20 @@ config ACPI_PROCFS

	  Say N to delete /proc/acpi/ files that have moved to /sys/

config ACPI_PROC_EVENT
	bool "Deprecated /proc/acpi/event support"
	depends on PROC_FS
	---help---
	  A user-space daemon, acpi, typically read /proc/acpi/event
	  and handled all ACPI sub-system generated events.

	  These events are now delivered to user-space via
	  either the input layer, or as netlink events.

	  This build option enables the old code for for legacy
	  user-space implementation.  After some time, this will
	  be moved under CONFIG_ACPI_PROCFS, and then deleted.

config ACPI_AC
	tristate "AC Adapter"
	depends on X86
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ static void acpi_ac_notify(acpi_handle handle, u32 event, void *data)
	case ACPI_NOTIFY_BUS_CHECK:
	case ACPI_NOTIFY_DEVICE_CHECK:
		acpi_ac_get_state(ac);
		acpi_bus_generate_event(device, event, (u32) ac->state);
		acpi_bus_generate_proc_event(device, event, (u32) ac->state);
		acpi_bus_generate_netlink_event(device->pnp.device_class,
						  device->dev.bus_id, event,
						  (u32) ac->state);
+1 −1
Original line number Diff line number Diff line
@@ -1069,7 +1069,7 @@ static void asus_hotk_notify(acpi_handle handle, u32 event, void *data)
		hotk->brightness = (event & ~((u32) BR_DOWN));
	}

	acpi_bus_generate_event(hotk->device, event,
	acpi_bus_generate_proc_event(hotk->device, event,
				hotk->event_count[event % 128]++);

	return;
+1 −1
Original line number Diff line number Diff line
@@ -867,7 +867,7 @@ static void acpi_battery_notify(acpi_handle handle, u32 event, void *data)
	case ACPI_NOTIFY_DEVICE_CHECK:
		device = battery->device;
		acpi_battery_notify_update(battery);
		acpi_bus_generate_event(device, event,
		acpi_bus_generate_proc_event(device, event,
					acpi_battery_present(battery));
		acpi_bus_generate_netlink_event(device->pnp.device_class,
						  device->dev.bus_id, event,
Loading