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
0874aad7
Commit
0874aad7
authored
May 06, 2002
by
Roman Zippel
Committed by
Linus Torvalds
May 06, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] m68k: idle update [10/20]
Fix idle functions.
parent
6c4c810c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
12 deletions
+10
-12
arch/m68k/kernel/process.c
arch/m68k/kernel/process.c
+10
-12
No files found.
arch/m68k/kernel/process.c
View file @
0874aad7
...
@@ -53,9 +53,8 @@ asmlinkage void ret_from_fork(void);
...
@@ -53,9 +53,8 @@ asmlinkage void ret_from_fork(void);
/*
/*
* The idle loop on an m68k..
* The idle loop on an m68k..
*/
*/
static
void
default_idle
(
void
)
void
default_idle
(
void
)
{
{
while
(
1
)
{
if
(
!
need_resched
())
if
(
!
need_resched
())
#if defined(MACH_ATARI_ONLY) && !defined(CONFIG_HADES)
#if defined(MACH_ATARI_ONLY) && !defined(CONFIG_HADES)
/* block out HSYNC on the atari (falcon) */
/* block out HSYNC on the atari (falcon) */
...
@@ -63,9 +62,6 @@ static void default_idle(void)
...
@@ -63,9 +62,6 @@ static void default_idle(void)
#else
#else
__asm__
(
"stop #0x2000"
:
:
:
"cc"
);
__asm__
(
"stop #0x2000"
:
:
:
"cc"
);
#endif
#endif
schedule
();
check_pgt_cache
();
}
}
}
void
(
*
idle
)(
void
)
=
default_idle
;
void
(
*
idle
)(
void
)
=
default_idle
;
...
@@ -79,9 +75,11 @@ void (*idle)(void) = default_idle;
...
@@ -79,9 +75,11 @@ void (*idle)(void) = default_idle;
void
cpu_idle
(
void
)
void
cpu_idle
(
void
)
{
{
/* endless idle loop with no priority at all */
/* endless idle loop with no priority at all */
init_idle
();
while
(
1
)
{
current
->
nice
=
20
;
while
(
!
need_resched
())
idle
();
idle
();
schedule
();
}
}
}
void
machine_restart
(
char
*
__unused
)
void
machine_restart
(
char
*
__unused
)
...
...
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