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
7f36d9de
Commit
7f36d9de
authored
Jul 03, 2009
by
Ingo Molnar
Committed by
Thomas Gleixner
Jul 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drivers/serial: call flush_to_ldisc when the irq is threaded
Signed-off-by:
Ingo Molnar
<
mingo@elte.hu
>
parent
29504810
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
drivers/char/tty_buffer.c
drivers/char/tty_buffer.c
+4
-0
drivers/serial/8250.c
drivers/serial/8250.c
+6
-1
No files found.
drivers/char/tty_buffer.c
View file @
7f36d9de
...
@@ -482,10 +482,14 @@ void tty_flip_buffer_push(struct tty_struct *tty)
...
@@ -482,10 +482,14 @@ void tty_flip_buffer_push(struct tty_struct *tty)
tty
->
buf
.
tail
->
commit
=
tty
->
buf
.
tail
->
used
;
tty
->
buf
.
tail
->
commit
=
tty
->
buf
.
tail
->
used
;
spin_unlock_irqrestore
(
&
tty
->
buf
.
lock
,
flags
);
spin_unlock_irqrestore
(
&
tty
->
buf
.
lock
,
flags
);
#ifndef CONFIG_PREEMPT_RT
if
(
tty
->
low_latency
)
if
(
tty
->
low_latency
)
flush_to_ldisc
(
&
tty
->
buf
.
work
.
work
);
flush_to_ldisc
(
&
tty
->
buf
.
work
.
work
);
else
else
schedule_delayed_work
(
&
tty
->
buf
.
work
,
1
);
schedule_delayed_work
(
&
tty
->
buf
.
work
,
1
);
#else
flush_to_ldisc
(
&
tty
->
buf
.
work
.
work
);
#endif
}
}
EXPORT_SYMBOL
(
tty_flip_buffer_push
);
EXPORT_SYMBOL
(
tty_flip_buffer_push
);
...
...
drivers/serial/8250.c
View file @
7f36d9de
...
@@ -1595,7 +1595,12 @@ static irqreturn_t serial8250_interrupt(int irq, void *dev_id)
...
@@ -1595,7 +1595,12 @@ static irqreturn_t serial8250_interrupt(int irq, void *dev_id)
l
=
l
->
next
;
l
=
l
->
next
;
if
(
l
==
i
->
head
&&
pass_counter
++
>
PASS_LIMIT
)
{
/*
* On preempt-rt we can be preempted and run in our
* own thread.
*/
if
(
!
preempt_rt
()
&&
l
==
i
->
head
&&
pass_counter
++
>
PASS_LIMIT
)
{
/* If we hit this, we're dead. */
/* If we hit this, we're dead. */
printk
(
KERN_ERR
"serial8250: too much work for "
printk
(
KERN_ERR
"serial8250: too much work for "
"irq%d
\n
"
,
irq
);
"irq%d
\n
"
,
irq
);
...
...
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