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
46ec4a5b
Commit
46ec4a5b
authored
Feb 13, 2003
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ppc64: Never call event-scan faster than once per second, required on some machines
parent
2c5c4f1f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
+10
-9
arch/ppc64/kernel/rtasd.c
arch/ppc64/kernel/rtasd.c
+10
-9
No files found.
arch/ppc64/kernel/rtasd.c
View file @
46ec4a5b
...
@@ -147,8 +147,8 @@ static int enable_surveillance(void)
...
@@ -147,8 +147,8 @@ static int enable_surveillance(void)
{
{
int
error
;
int
error
;
error
=
rtas_call
(
rtas_token
(
"set-indicator"
),
3
,
1
,
NULL
,
SURVEILLANCE_TOKEN
,
error
=
rtas_call
(
rtas_token
(
"set-indicator"
),
3
,
1
,
NULL
,
0
,
SURVEILLANCE_TIMEOUT
);
SURVEILLANCE_TOKEN
,
0
,
SURVEILLANCE_TIMEOUT
);
if
(
error
)
{
if
(
error
)
{
printk
(
KERN_ERR
"rtasd: could not enable surveillance
\n
"
);
printk
(
KERN_ERR
"rtasd: could not enable surveillance
\n
"
);
...
@@ -243,11 +243,13 @@ static int rtasd(void *unused)
...
@@ -243,11 +243,13 @@ static int rtasd(void *unused)
}
while
(
error
==
0
);
}
while
(
error
==
0
);
/* Check all cpus for pending events before sleeping*/
/*
if
(
!
first_pass
)
{
* Check all cpus for pending events quickly, sleeping for
* at least one second since some machines have problems
* if we call event-scan too quickly
*/
set_current_state
(
TASK_INTERRUPTIBLE
);
set_current_state
(
TASK_INTERRUPTIBLE
);
schedule_timeout
((
HZ
*
60
/
rtas_event_scan_rate
)
/
2
);
schedule_timeout
(
first_pass
?
HZ
:
(
HZ
*
60
/
rtas_event_scan_rate
)
/
2
);
}
}
}
if
(
first_pass
&&
surveillance_requested
)
{
if
(
first_pass
&&
surveillance_requested
)
{
...
@@ -255,10 +257,9 @@ static int rtasd(void *unused)
...
@@ -255,10 +257,9 @@ static int rtasd(void *unused)
if
(
enable_surveillance
())
if
(
enable_surveillance
())
goto
error_vfree
;
goto
error_vfree
;
DEBUG
(
"surveillance enabled
\n
"
);
DEBUG
(
"surveillance enabled
\n
"
);
}
else
{
first_pass
=
0
;
}
}
first_pass
=
0
;
goto
repeat
;
goto
repeat
;
error_vfree:
error_vfree:
...
...
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