mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
X25: Move interrupt flag to bitfield
Moves the x25 interrupt flag from char into bitfield. Signed-off-by: Andrew Hendry <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
cb863ffd4a
commit
b7792e34cb
4 changed files with 7 additions and 4 deletions
|
|
@ -641,6 +641,7 @@ static struct sock *x25_make_new(struct sock *osk)
|
|||
x25->cudmatchlength = ox25->cudmatchlength;
|
||||
x25->accptapprv = ox25->accptapprv;
|
||||
|
||||
clear_bit(X25_INTERRUPT_FLAG, &x25->flags);
|
||||
x25_init_timers(sk);
|
||||
out:
|
||||
return sk;
|
||||
|
|
|
|||
|
|
@ -273,7 +273,7 @@ static int x25_state3_machine(struct sock *sk, struct sk_buff *skb, int frametyp
|
|||
break;
|
||||
|
||||
case X25_INTERRUPT_CONFIRMATION:
|
||||
x25->intflag = 0;
|
||||
clear_bit(X25_INTERRUPT_FLAG, &x25->flags);
|
||||
break;
|
||||
|
||||
case X25_INTERRUPT:
|
||||
|
|
|
|||
|
|
@ -148,8 +148,9 @@ void x25_kick(struct sock *sk)
|
|||
/*
|
||||
* Transmit interrupt data.
|
||||
*/
|
||||
if (!x25->intflag && skb_peek(&x25->interrupt_out_queue) != NULL) {
|
||||
x25->intflag = 1;
|
||||
if (skb_peek(&x25->interrupt_out_queue) != NULL &&
|
||||
!test_and_set_bit(X25_INTERRUPT_FLAG, &x25->flags)) {
|
||||
|
||||
skb = skb_dequeue(&x25->interrupt_out_queue);
|
||||
x25_transmit_link(skb, x25->neighbour);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue