lkml.org 
[lkml]   [2010]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/5] serial: Factor out uart_poll_timeout() from 8250 driver
> +/* Base timer interval for polling */
> +int uart_poll_timeout(struct uart_port *port)
> +{
> + int timeout = port->timeout;
> +
> + return timeout > 6 ? (timeout / 2 - 2) : 1;
> +}
> +EXPORT_SYMBOL(uart_poll_timeout);

inline this rather than exporting it and making it global - it's a tiny
spec of code and the export symbol probably costs more !


\
 
 \ /
  Last update: 2010-09-28 15:43    [W:0.033 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site