lkml.org 
[lkml]   [2002]   [Aug]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH 2.4] : ir240_irtty_stats.diff
From
ir240_irtty_stats.diff :
----------------------
<Following patch from Frank Becker>
o [FEATURE] Update dev tx stats at the right time


--- linux/drivers/net/irda/irtty.d5.c Thu Jun 6 17:53:06 2002
+++ linux/drivers/net/irda/irtty.c Thu Jun 6 17:53:16 2002
@@ -714,8 +714,6 @@ static void irtty_write_wakeup(struct tt

self->tx_buff.data += actual;
self->tx_buff.len -= actual;
-
- self->stats.tx_packets++;
} else {
/*
* Now serial buffer is almost free & we can start
@@ -723,6 +721,8 @@ static void irtty_write_wakeup(struct tt
*/
IRDA_DEBUG(5, __FUNCTION__ "(), finished with frame!\n");

+ self->stats.tx_packets++;
+
tty->flags &= ~(1 << TTY_DO_WRITE_WAKEUP);

if (self->new_speed) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 13:27    [W:0.017 / U:0.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site