• Russell King's avatar
    [SERIAL] Replace tty->alt_speed with uart_get_baud_rate() · e75784be
    Russell King authored
    We provide a new function, uart_get_baud_rate(), to return the
    desired numeric baud rate from the uart_port and tty structures.
    This allows us to:
    
    1. localise the 38400 alternate speed kludge to one area.
    2. support faster baud rates than the usual baud_base / desired_rate
       calculations in the future (eventually allowing the use of the
       magic divisors in 8250.c.)
    e75784be
core.c 59.9 KB