linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zhang Rui <rui.zhang@intel.com>
To: lenb@kernel.org
Cc: "linux-acpi@vger" <linux-acpi@vger.kernel.org>, linux-pm@osdl.org
Subject: [PATCH 0/6] [-mm]: ACPI: duplicate ACPI procfs functions in sysfs
Date: Sat, 06 Jan 2007 19:35:06 +0800	[thread overview]
Message-ID: <1168083306.5619.34.camel@localhost.localdomain> (raw)

This patch set is against acpi-test sysfs branch, and will duplicate several ACPI procfs functions in sysfs.
As struct subsystem power_subsys is referred and the interface under /sys/power/ is changed by this patch series,
I wish to receive some comments from linux-pm too.

Patch 01:
	add a Kconfig option which is used to make ACPI procfs interface configurable.
	This will be used by all the following sysfs conversion patches.

Patch 02:
	add ACPI debug attribute in sysfs.
	By applying this patch, /proc/acpi/debug_layer && debug_level is deprecated by
	/sys/module/acpi/parameter/debug_layer && debug_level.

Patch 03-05:
	add ACPI sleep attributes in sysfs.
	/proc/acpi/sleep is already deprecated by /sys/power/state.
	/proc/acpi/alarm is deprecated by /sys/power/alarm.
	For those devices that support "wake" attribute, two files, "sleep_state" and "wakeup", are created for these devices.
	"sleep_state" indicates the lowest sleeping state that can be entered while still providing wake functionality.
	"wakeup" can be used to enable/disable the device's ability to wake a sleeping system.
	So /proc/acpi/wakeup is deprecated by /sys/devices/acpi_system/.../xxx/sleep_state && wakeup.

Patch 06:
	add ACPI info in sysfs which indicates ACPICA version.
	/sys/firmware/acpi/info is create and /proc/acpi/info is marked as deprecated.

Things not do:
	/proc/acpi/dsdt and /proc/acpi/fadt are not duplicated in sysfs, as the acpidump tools are quite handy.
	And another reason is that, if we do this, we want all the ACPI tables be shown in sysfs, like
	the multiple ssdts and dynamic loaded ssdts. And we are not able to do this now. 

Things will do:
	This patch set only duplicates the ACPI attributes shown in /proc/acpi/.
	The next patch set will duplicate attributes in sysfs for ACPI devices.

For users who are used to the procfs interface, setting CONFIG_ACPI_PROCFS will make them feel nothing different.
But I'd like you guys to try the ACPI sysfs interfaces though it's not complete now. :)

             reply	other threads:[~2007-01-06 11:34 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-06 11:35 Zhang Rui [this message]
2007-01-06 22:21 ` [PATCH 0/6] [-mm]: ACPI: duplicate ACPI procfs functions in sysfs David Brownell
2007-01-07  5:54   ` [linux-pm] " Matthew Garrett
2007-01-08  3:31     ` David Brownell
2007-01-08 13:10       ` Pavel Machek
2007-01-25  4:14       ` Len Brown
2007-01-25  5:50         ` Matthew Garrett
2007-01-25  9:35         ` David Brownell
2007-01-08 11:40     ` Zhang Rui
2007-01-08 13:13       ` Pavel Machek
2007-01-25  2:28         ` Len Brown
2007-01-25 12:08           ` Pavel Machek
2007-01-25 13:15             ` David Brownell
2007-01-25 19:51               ` Pavel Machek
2007-01-26  1:36                 ` Zhang Rui
2007-01-10 20:53       ` David Brownell
2007-01-25  4:17         ` Len Brown
2007-01-25 13:15           ` Pavel Machek
2007-01-25  3:33     ` [linux-pm] " Len Brown
2007-01-25  3:28   ` Len Brown
2007-01-25  9:54     ` David Brownell
2007-01-25 19:37     ` Pavel Machek
2007-01-07 11:15 ` Pavel Machek
2007-01-25  2:03   ` Len Brown
2007-01-25  2:52     ` Nigel Cunningham
2007-01-25  8:17       ` Rafael J. Wysocki
2007-01-25 10:00         ` [linux-pm] " David Brownell
2007-01-18  6:53 ` Zhang Rui
2007-01-21  5:48 ` [PATCH 0/3] " Zhang Rui
2007-01-25  3:50   ` Len Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1168083306.5619.34.camel@localhost.localdomain \
    --to=rui.zhang@intel.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-pm@osdl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).