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
13af4836
Commit
13af4836
authored
Apr 02, 2008
by
Ingo Molnar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x86: improve default idle
Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
f5149a49
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
16 deletions
+0
-16
arch/x86/kernel/process_32.c
arch/x86/kernel/process_32.c
+0
-8
arch/x86/kernel/process_64.c
arch/x86/kernel/process_64.c
+0
-8
No files found.
arch/x86/kernel/process_32.c
View file @
13af4836
...
...
@@ -113,16 +113,8 @@ void default_idle(void)
local_irq_disable
();
if
(
!
need_resched
())
{
ktime_t
t0
,
t1
;
u64
t0n
,
t1n
;
t0
=
ktime_get
();
t0n
=
ktime_to_ns
(
t0
);
safe_halt
();
/* enables interrupts racelessly */
local_irq_disable
();
t1
=
ktime_get
();
t1n
=
ktime_to_ns
(
t1
);
sched_clock_idle_wakeup_event
(
t1n
-
t0n
);
}
local_irq_enable
();
current_thread_info
()
->
status
|=
TS_POLLING
;
...
...
arch/x86/kernel/process_64.c
View file @
13af4836
...
...
@@ -107,16 +107,8 @@ void default_idle(void)
smp_mb
();
local_irq_disable
();
if
(
!
need_resched
())
{
ktime_t
t0
,
t1
;
u64
t0n
,
t1n
;
t0
=
ktime_get
();
t0n
=
ktime_to_ns
(
t0
);
safe_halt
();
/* enables interrupts racelessly */
local_irq_disable
();
t1
=
ktime_get
();
t1n
=
ktime_to_ns
(
t1
);
sched_clock_idle_wakeup_event
(
t1n
-
t0n
);
}
local_irq_enable
();
current_thread_info
()
->
status
|=
TS_POLLING
;
...
...
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