Re: [PATCH 2/2] Bluetooth: l2cap_set_timer needs jiffies as timeout value

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrzej,

> After moving L2CAP timers to workqueues l2cap_set_timer expects timeout
> value to be specified in jiffies but constants defined in miliseconds
> are used. This makes timeouts unreliable when CONFIG_HZ is not set to
> 1000.
> 
> __set_chan_timer macro still uses jiffies as input to avoid multiple
> conversions from/to jiffies for sk_sndtimeo value which is already
> specified in jiffies.
> 
> Signed-off-by: Andrzej Kaczmarek <andrzej.kaczmarek@xxxxxxxxx>
> ---
>  include/net/bluetooth/l2cap.h |    6 +++---
>  net/bluetooth/l2cap_core.c    |   12 ++++++++----
>  2 files changed, 11 insertions(+), 7 deletions(-)

Acked-by: Marcel Holtmann <marcel@xxxxxxxxxxxx>

Regards

Marcel


--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux