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
55d04dff
Commit
55d04dff
authored
Jul 13, 2005
by
Ralf Baechle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
New kernel option nowait allows disabling the use of the wait instruction.
Signed-off-by:
Ralf Baechle
<
ralf@linux-mips.org
>
parent
569f75bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
arch/mips/kernel/cpu-probe.c
arch/mips/kernel/cpu-probe.c
+16
-0
No files found.
arch/mips/kernel/cpu-probe.c
View file @
55d04dff
...
@@ -71,11 +71,27 @@ static void au1k_wait(void)
...
@@ -71,11 +71,27 @@ static void au1k_wait(void)
:
:
"r"
(
au1k_wait
));
:
:
"r"
(
au1k_wait
));
}
}
static
int
__initdata
nowait
=
0
;
int
__init
wait_disable
(
char
*
s
)
{
nowait
=
1
;
return
1
;
}
__setup
(
"nowait"
,
wait_disable
);
static
inline
void
check_wait
(
void
)
static
inline
void
check_wait
(
void
)
{
{
struct
cpuinfo_mips
*
c
=
&
current_cpu_data
;
struct
cpuinfo_mips
*
c
=
&
current_cpu_data
;
printk
(
"Checking for 'wait' instruction... "
);
printk
(
"Checking for 'wait' instruction... "
);
if
(
nowait
)
{
printk
(
" disabled.
\n
"
);
return
;
}
switch
(
c
->
cputype
)
{
switch
(
c
->
cputype
)
{
case
CPU_R3081
:
case
CPU_R3081
:
case
CPU_R3081E
:
case
CPU_R3081E
:
...
...
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