Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
ebb6e1a6
Commit
ebb6e1a6
authored
Apr 14, 2005
by
Len Brown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ACPI] Deprecate /proc/acpi/sleep in favor of /sys/power/state
Signed-off-by:
Len Brown
<
len.brown@intel.com
>
parent
9d943775
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
drivers/acpi/Kconfig
drivers/acpi/Kconfig
+8
-0
drivers/acpi/sleep/proc.c
drivers/acpi/sleep/proc.c
+9
-0
No files found.
drivers/acpi/Kconfig
View file @
ebb6e1a6
...
...
@@ -80,6 +80,14 @@ config ACPI_SLEEP_PROC_FS
depends on ACPI_SLEEP && PROC_FS
default y
config ACPI_SLEEP_PROC_SLEEP
bool "/proc/acpi/sleep (deprecated)"
depends on ACPI_SLEEP_PROC_FS
default n
---help---
Create /proc/acpi/sleep
Deprecated by /sys/power/state
config ACPI_AC
tristate "AC Adapter"
depends on X86
...
...
drivers/acpi/sleep/proc.c
View file @
ebb6e1a6
...
...
@@ -13,13 +13,17 @@
#include "sleep.h"
#ifdef CONFIG_ACPI_SLEEP_PROC_SLEEP
#define ACPI_SYSTEM_FILE_SLEEP "sleep"
#endif
#define ACPI_SYSTEM_FILE_ALARM "alarm"
#define ACPI_SYSTEM_FILE_WAKEUP_DEVICE "wakeup"
#define _COMPONENT ACPI_SYSTEM_COMPONENT
ACPI_MODULE_NAME
(
"sleep"
)
#ifdef CONFIG_ACPI_SLEEP_PROC_SLEEP
static
int
acpi_system_sleep_seq_show
(
struct
seq_file
*
seq
,
void
*
offset
)
{
...
...
@@ -78,6 +82,7 @@ acpi_system_write_sleep (
Done:
return
error
?
error
:
count
;
}
#endif
/* CONFIG_ACPI_SLEEP_PROC_SLEEP */
static
int
acpi_system_alarm_seq_show
(
struct
seq_file
*
seq
,
void
*
offset
)
{
...
...
@@ -452,6 +457,7 @@ static struct file_operations acpi_system_wakeup_device_fops = {
.
release
=
single_release
,
};
#ifdef CONFIG_ACPI_SLEEP_PROC_SLEEP
static
struct
file_operations
acpi_system_sleep_fops
=
{
.
open
=
acpi_system_sleep_open_fs
,
.
read
=
seq_read
,
...
...
@@ -459,6 +465,7 @@ static struct file_operations acpi_system_sleep_fops = {
.
llseek
=
seq_lseek
,
.
release
=
single_release
,
};
#endif
/* CONFIG_ACPI_SLEEP_PROC_SLEEP */
static
struct
file_operations
acpi_system_alarm_fops
=
{
.
open
=
acpi_system_alarm_open_fs
,
...
...
@@ -484,11 +491,13 @@ static int acpi_sleep_proc_init(void)
if
(
acpi_disabled
)
return
0
;
#ifdef CONFIG_ACPI_SLEEP_PROC_SLEEP
/* 'sleep' [R/W]*/
entry
=
create_proc_entry
(
ACPI_SYSTEM_FILE_SLEEP
,
S_IFREG
|
S_IRUGO
|
S_IWUSR
,
acpi_root_dir
);
if
(
entry
)
entry
->
proc_fops
=
&
acpi_system_sleep_fops
;
#endif
/* 'alarm' [R/W] */
entry
=
create_proc_entry
(
ACPI_SYSTEM_FILE_ALARM
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment