Commit 6a0aa67b authored by Jiri Slaby's avatar Jiri Slaby Committed by Linus Torvalds

Char: cyclades, remove unused timestamps

Signed-off-by: default avatarJiri Slaby <jirislaby@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3991428d
...@@ -1049,7 +1049,6 @@ static void cyy_intr_chip(struct cyclades_card *cinfo, int chip, ...@@ -1049,7 +1049,6 @@ static void cyy_intr_chip(struct cyclades_card *cinfo, int chip,
channel = (u_short) (save_xir & CyIRChannel); channel = (u_short) (save_xir & CyIRChannel);
i = channel + chip * 4 + cinfo->first_line; i = channel + chip * 4 + cinfo->first_line;
info = &cy_port[i]; info = &cy_port[i];
info->last_active = jiffies;
save_car = readb(base_addr + (CyCAR << index)); save_car = readb(base_addr + (CyCAR << index));
cy_writeb(base_addr + (CyCAR << index), save_xir); cy_writeb(base_addr + (CyCAR << index), save_xir);
...@@ -1225,7 +1224,6 @@ static void cyy_intr_chip(struct cyclades_card *cinfo, int chip, ...@@ -1225,7 +1224,6 @@ static void cyy_intr_chip(struct cyclades_card *cinfo, int chip,
goto txend; goto txend;
} }
info = &cy_port[i]; info = &cy_port[i];
info->last_active = jiffies;
if (info->tty == 0) { if (info->tty == 0) {
cy_writeb(base_addr + (CySRER << index), cy_writeb(base_addr + (CySRER << index),
readb(base_addr + (CySRER << index)) & readb(base_addr + (CySRER << index)) &
...@@ -1339,7 +1337,6 @@ txend: ...@@ -1339,7 +1337,6 @@ txend:
save_xir = (u_char) readb(base_addr + (CyMIR << index)); save_xir = (u_char) readb(base_addr + (CyMIR << index));
channel = (u_short) (save_xir & CyIRChannel); channel = (u_short) (save_xir & CyIRChannel);
info = &cy_port[channel + chip * 4 + cinfo->first_line]; info = &cy_port[channel + chip * 4 + cinfo->first_line];
info->last_active = jiffies;
save_car = readb(base_addr + (CyCAR << index)); save_car = readb(base_addr + (CyCAR << index));
cy_writeb(base_addr + (CyCAR << index), save_xir); cy_writeb(base_addr + (CyCAR << index), save_xir);
...@@ -1570,9 +1567,6 @@ cyz_handle_rx(struct cyclades_port *info, struct CH_CTRL __iomem *ch_ctrl, ...@@ -1570,9 +1567,6 @@ cyz_handle_rx(struct cyclades_port *info, struct CH_CTRL __iomem *ch_ctrl,
char_count = rx_put - rx_get + rx_bufsize; char_count = rx_put - rx_get + rx_bufsize;
if (char_count) { if (char_count) {
info->last_active = jiffies;
info->jiffies[1] = jiffies;
#ifdef CY_ENABLE_MONITORING #ifdef CY_ENABLE_MONITORING
info->mon.int_count++; info->mon.int_count++;
info->mon.char_count += char_count; info->mon.char_count += char_count;
...@@ -1678,8 +1672,6 @@ cyz_handle_tx(struct cyclades_port *info, struct CH_CTRL __iomem *ch_ctrl, ...@@ -1678,8 +1672,6 @@ cyz_handle_tx(struct cyclades_port *info, struct CH_CTRL __iomem *ch_ctrl,
info->x_char = 0; info->x_char = 0;
char_count--; char_count--;
info->icount.tx++; info->icount.tx++;
info->last_active = jiffies;
info->jiffies[2] = jiffies;
} }
#ifdef BLOCKMOVE #ifdef BLOCKMOVE
while (0 < (small_count = min_t(unsigned int, while (0 < (small_count = min_t(unsigned int,
...@@ -1699,8 +1691,6 @@ cyz_handle_tx(struct cyclades_port *info, struct CH_CTRL __iomem *ch_ctrl, ...@@ -1699,8 +1691,6 @@ cyz_handle_tx(struct cyclades_port *info, struct CH_CTRL __iomem *ch_ctrl,
info->xmit_cnt -= small_count; info->xmit_cnt -= small_count;
info->xmit_tail = (info->xmit_tail + small_count) & info->xmit_tail = (info->xmit_tail + small_count) &
(SERIAL_XMIT_SIZE - 1); (SERIAL_XMIT_SIZE - 1);
info->last_active = jiffies;
info->jiffies[2] = jiffies;
} }
#else #else
while (info->xmit_cnt && char_count) { while (info->xmit_cnt && char_count) {
...@@ -1713,8 +1703,6 @@ cyz_handle_tx(struct cyclades_port *info, struct CH_CTRL __iomem *ch_ctrl, ...@@ -1713,8 +1703,6 @@ cyz_handle_tx(struct cyclades_port *info, struct CH_CTRL __iomem *ch_ctrl,
tx_put = (tx_put + 1) & (tx_bufsize - 1); tx_put = (tx_put + 1) & (tx_bufsize - 1);
char_count--; char_count--;
info->icount.tx++; info->icount.tx++;
info->last_active = jiffies;
info->jiffies[2] = jiffies;
} }
#endif #endif
ztxdone: ztxdone:
......
...@@ -569,7 +569,6 @@ struct cyclades_port { ...@@ -569,7 +569,6 @@ struct cyclades_port {
int close_delay; int close_delay;
unsigned short closing_wait; unsigned short closing_wait;
unsigned long event; unsigned long event;
unsigned long last_active;
int count; /* # of fd on device */ int count; /* # of fd on device */
int breakon; int breakon;
int breakoff; int breakoff;
...@@ -580,7 +579,6 @@ struct cyclades_port { ...@@ -580,7 +579,6 @@ struct cyclades_port {
int xmit_cnt; int xmit_cnt;
int default_threshold; int default_threshold;
int default_timeout; int default_timeout;
unsigned long jiffies[3];
unsigned long rflush_count; unsigned long rflush_count;
struct cyclades_monitor mon; struct cyclades_monitor mon;
struct cyclades_idle_stats idle_stats; struct cyclades_idle_stats idle_stats;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment