File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -896,10 +896,10 @@ static int get_serial_info(struct tty_struct *tty, struct serial_struct *ss)
896
896
897
897
ss -> xmit_fifo_size = acm -> writesize ;
898
898
ss -> baud_base = le32_to_cpu (acm -> line .dwDTERate );
899
- ss -> close_delay = acm -> port .close_delay / 10 ;
899
+ ss -> close_delay = jiffies_to_msecs ( acm -> port .close_delay ) / 10 ;
900
900
ss -> closing_wait = acm -> port .closing_wait == ASYNC_CLOSING_WAIT_NONE ?
901
901
ASYNC_CLOSING_WAIT_NONE :
902
- acm -> port .closing_wait / 10 ;
902
+ jiffies_to_msecs ( acm -> port .closing_wait ) / 10 ;
903
903
return 0 ;
904
904
}
905
905
@@ -909,9 +909,10 @@ static int set_serial_info(struct tty_struct *tty, struct serial_struct *ss)
909
909
unsigned int closing_wait , close_delay ;
910
910
int retval = 0 ;
911
911
912
- close_delay = ss -> close_delay * 10 ;
912
+ close_delay = msecs_to_jiffies ( ss -> close_delay * 10 ) ;
913
913
closing_wait = ss -> closing_wait == ASYNC_CLOSING_WAIT_NONE ?
914
- ASYNC_CLOSING_WAIT_NONE : ss -> closing_wait * 10 ;
914
+ ASYNC_CLOSING_WAIT_NONE :
915
+ msecs_to_jiffies (ss -> closing_wait * 10 );
915
916
916
917
mutex_lock (& acm -> port .mutex );
917
918
You can’t perform that action at this time.
0 commit comments