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
nexedi
linux
Commits
c039f765
Commit
c039f765
authored
Sep 14, 2004
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Remove APM standby support - it's unused.
parent
7101c2ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
29 deletions
+3
-29
arch/arm/kernel/apm.c
arch/arm/kernel/apm.c
+3
-29
No files found.
arch/arm/kernel/apm.c
View file @
c039f765
...
...
@@ -67,9 +67,7 @@ struct apm_user {
int
suspend_result
;
int
suspends_pending
;
int
standbys_pending
;
unsigned
int
suspends_read
;
unsigned
int
standbys_read
;
struct
apm_queue
queue
;
};
...
...
@@ -78,7 +76,6 @@ struct apm_user {
* Local variables
*/
static
int
suspends_pending
;
static
int
standbys_pending
;
static
int
apm_disabled
;
static
DECLARE_WAIT_QUEUE_HEAD
(
apm_waitqueue
);
...
...
@@ -155,12 +152,6 @@ static void queue_event_one_user(struct apm_user *as, apm_event_t event)
as
->
suspends_pending
++
;
suspends_pending
++
;
break
;
case
APM_SYS_STANDBY
:
case
APM_USER_STANDBY
:
as
->
standbys_pending
++
;
standbys_pending
++
;
break
;
}
}
...
...
@@ -223,17 +214,8 @@ static ssize_t apm_read(struct file *fp, char __user *buf, size_t count, loff_t
if
(
copy_to_user
(
buf
,
&
event
,
sizeof
(
event
)))
break
;
switch
(
event
)
{
case
APM_SYS_SUSPEND
:
case
APM_USER_SUSPEND
:
if
(
event
==
APM_SYS_SUSPEND
||
event
==
APM_USER_SUSPEND
)
as
->
suspends_read
++
;
break
;
case
APM_SYS_STANDBY
:
case
APM_USER_STANDBY
:
as
->
standbys_read
++
;
break
;
}
buf
+=
sizeof
(
event
);
i
-=
sizeof
(
event
);
...
...
@@ -273,9 +255,6 @@ apm_ioctl(struct inode * inode, struct file *filp, u_int cmd, u_long arg)
return
-
EPERM
;
switch
(
cmd
)
{
case
APM_IOC_STANDBY
:
break
;
case
APM_IOC_SUSPEND
:
/*
* If we read a suspend command from /dev/apm_bios,
...
...
@@ -322,14 +301,9 @@ static int apm_release(struct inode * inode, struct file * filp)
/*
* We are now unhooked from the chain. As far as new
* events are concerned, we no longer exist. However, we
* need to balance s
tandbys_pending and suspends_pending,
*
which means the
possibility of sleeping.
* need to balance s
uspends_pending, which means the
* possibility of sleeping.
*/
if
(
as
->
standbys_pending
>
0
)
{
standbys_pending
-=
as
->
standbys_pending
;
// if (standbys_pending <= 0)
// standby();
}
if
(
as
->
suspends_pending
>
0
)
{
suspends_pending
-=
as
->
suspends_pending
;
if
(
suspends_pending
<=
0
)
...
...
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