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
4b4e85b8
Commit
4b4e85b8
authored
Mar 03, 2003
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://ldm.bkbits.net/linux-2.5-core
into home.transmeta.com:/home/torvalds/v2.5/linux
parents
fb0e76c5
48ca6da8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
drivers/char/tty_io.c
drivers/char/tty_io.c
+4
-6
No files found.
drivers/char/tty_io.c
View file @
4b4e85b8
...
...
@@ -1944,26 +1944,24 @@ static void flush_to_ldisc(void *private_)
schedule_delayed_work
(
&
tty
->
flip
.
work
,
1
);
return
;
}
spin_lock_irqsave
(
&
tty
->
read_lock
,
flags
);
if
(
tty
->
flip
.
buf_num
)
{
cp
=
tty
->
flip
.
char_buf
+
TTY_FLIPBUF_SIZE
;
fp
=
tty
->
flip
.
flag_buf
+
TTY_FLIPBUF_SIZE
;
tty
->
flip
.
buf_num
=
0
;
local_irq_save
(
flags
);
// FIXME: is this safe?
tty
->
flip
.
char_buf_ptr
=
tty
->
flip
.
char_buf
;
tty
->
flip
.
flag_buf_ptr
=
tty
->
flip
.
flag_buf
;
}
else
{
cp
=
tty
->
flip
.
char_buf
;
fp
=
tty
->
flip
.
flag_buf
;
tty
->
flip
.
buf_num
=
1
;
local_irq_save
(
flags
);
// FIXME: is this safe?
tty
->
flip
.
char_buf_ptr
=
tty
->
flip
.
char_buf
+
TTY_FLIPBUF_SIZE
;
tty
->
flip
.
flag_buf_ptr
=
tty
->
flip
.
flag_buf
+
TTY_FLIPBUF_SIZE
;
}
count
=
tty
->
flip
.
count
;
tty
->
flip
.
count
=
0
;
local_irq_restore
(
flags
);
// FIXME: is this safe?
spin_unlock_irqrestore
(
&
tty
->
read_lock
,
flags
);
tty
->
ldisc
.
receive_buf
(
tty
,
cp
,
fp
,
count
);
}
...
...
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