Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
038cb01e
Commit
038cb01e
authored
Feb 22, 2007
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Add tick_nohz_{stop,restart}_sched_tick() calls to cpu_idle().
Signed-off-by:
David S. Miller
<
davem@davemloft.net
>
parent
777a4475
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
arch/sparc64/kernel/process.c
arch/sparc64/kernel/process.c
+9
-6
No files found.
arch/sparc64/kernel/process.c
View file @
038cb01e
...
...
@@ -28,6 +28,7 @@
#include <linux/reboot.h>
#include <linux/delay.h>
#include <linux/compat.h>
#include <linux/tick.h>
#include <linux/init.h>
#include <asm/oplib.h>
...
...
@@ -88,12 +89,14 @@ void cpu_idle(void)
set_thread_flag
(
TIF_POLLING_NRFLAG
);
while
(
1
)
{
if
(
need_resched
())
{
preempt_enable_no_resched
();
schedule
();
preempt_disable
();
}
sparc64_yield
();
tick_nohz_stop_sched_tick
();
while
(
!
need_resched
())
sparc64_yield
();
tick_nohz_restart_sched_tick
();
preempt_enable_no_resched
();
schedule
();
preempt_disable
();
}
}
...
...
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