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
785426c7
Commit
785426c7
authored
Jul 01, 2002
by
Brad Heilbrun
Committed by
Linus Torvalds
Jul 01, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] APM compile fix, "stime" update broke it
Fix APM that got broken by getting rid of "struct tms" and clock_t.
parent
f9fc1633
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
arch/i386/kernel/apm.c
arch/i386/kernel/apm.c
+3
-3
No files found.
arch/i386/kernel/apm.c
View file @
785426c7
...
...
@@ -814,16 +814,16 @@ static void apm_cpu_idle(void)
if
(
jiffies_since_last_check
>
IDLE_CALC_LIMIT
)
{
use_apm_idle
=
0
;
last_jiffies
=
jiffies
;
last_stime
=
current
->
times
.
tms_
stime
;
last_stime
=
current
->
stime
;
}
else
if
(
jiffies_since_last_check
>
idle_period
)
{
unsigned
int
idle_percentage
;
idle_percentage
=
current
->
times
.
tms_
stime
-
last_stime
;
idle_percentage
=
current
->
stime
-
last_stime
;
idle_percentage
*=
100
;
idle_percentage
/=
jiffies_since_last_check
;
use_apm_idle
=
(
idle_percentage
>
idle_threshold
);
last_jiffies
=
jiffies
;
last_stime
=
current
->
times
.
tms_
stime
;
last_stime
=
current
->
stime
;
}
bucket
=
IDLE_LEAKY_MAX
;
...
...
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