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
nexedi
linux
Commits
1493f8b6
Commit
1493f8b6
authored
Aug 30, 2002
by
Anton Blanchard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hvc_console: stop HVC console while xmon is running
parent
5e051f29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
arch/ppc64/xmon/xmon.c
arch/ppc64/xmon/xmon.c
+1
-1
drivers/char/hvc_console.c
drivers/char/hvc_console.c
+6
-2
No files found.
arch/ppc64/xmon/xmon.c
View file @
1493f8b6
...
...
@@ -33,7 +33,7 @@
#define skipbl xmon_skipbl
#ifdef CONFIG_SMP
static
unsigned
long
cpus_in_xmon
=
0
;
unsigned
long
cpus_in_xmon
=
0
;
static
unsigned
long
got_xmon
=
0
;
static
volatile
int
take_xmon
=
-
1
;
#endif
/* CONFIG_SMP */
...
...
drivers/char/hvc_console.c
View file @
1493f8b6
...
...
@@ -227,6 +227,8 @@ static void hvc_poll(int index)
spin_unlock_irqrestore
(
&
hp
->
lock
,
flags
);
}
extern
unsigned
long
cpus_in_xmon
;
int
khvcd
(
void
*
unused
)
{
int
i
;
...
...
@@ -237,8 +239,10 @@ int khvcd(void *unused)
sigfillset
(
&
current
->
blocked
);
for
(;;)
{
for
(
i
=
0
;
i
<
MAX_NR_HVC_CONSOLES
;
++
i
)
hvc_poll
(
i
);
if
(
!
cpus_in_xmon
)
{
for
(
i
=
0
;
i
<
MAX_NR_HVC_CONSOLES
;
++
i
)
hvc_poll
(
i
);
}
set_current_state
(
TASK_INTERRUPTIBLE
);
schedule_timeout
(
TIMEOUT
);
}
...
...
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