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
4f2d43f4
Commit
4f2d43f4
authored
Feb 13, 2004
by
Benjamin Herrenschmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: Add CPU NAP mode in idle loop on PowerMac G5
parent
b2513f19
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
arch/ppc64/kernel/idle.c
arch/ppc64/kernel/idle.c
+15
-0
arch/ppc64/kernel/setup.c
arch/ppc64/kernel/setup.c
+2
-0
No files found.
arch/ppc64/kernel/idle.c
View file @
4f2d43f4
...
...
@@ -42,6 +42,7 @@
extern
long
cede_processor
(
void
);
extern
long
poll_pending
(
void
);
extern
void
power4_idle
(
void
);
int
(
*
idle_loop
)(
void
);
...
...
@@ -279,6 +280,17 @@ int cpu_idle(void)
return
0
;
}
int
native_idle
(
void
)
{
while
(
1
)
{
if
(
!
need_resched
())
power4_idle
();
if
(
need_resched
())
schedule
();
}
return
0
;
}
int
idle_setup
(
void
)
{
#ifdef CONFIG_PPC_ISERIES
...
...
@@ -297,6 +309,9 @@ int idle_setup(void)
printk
(
"idle = default_idle
\n
"
);
idle_loop
=
default_idle
;
}
}
else
if
(
systemcfg
->
platform
==
PLATFORM_POWERMAC
)
{
printk
(
"idle = native_idle
\n
"
);
idle_loop
=
native_idle
;
}
else
{
printk
(
"idle_setup: unknown platform, use default_idle
\n
"
);
idle_loop
=
default_idle
;
...
...
arch/ppc64/kernel/setup.c
View file @
4f2d43f4
...
...
@@ -77,6 +77,8 @@ unsigned long decr_overclock_proc0 = 1;
unsigned
long
decr_overclock_set
=
0
;
unsigned
long
decr_overclock_proc0_set
=
0
;
int
powersave_nap
;
#ifdef CONFIG_XMON
extern
void
xmon_map_scc
(
void
);
#endif
...
...
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