]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
Bluetooth: l2cap_set_timer needs jiffies as timeout value
authorAndrzej Kaczmarek <andrzej.kaczmarek@tieto.com>
Wed, 4 Jan 2012 11:10:42 +0000 (12:10 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 13 Feb 2012 15:01:21 +0000 (17:01 +0200)
commitb83ddfe2ac670392c27a799371bb1a7e14a7e3d3
tree08d590b04b84860e3d29944e176d79d00f165cf6
parent6423cf3a1862d5b162aaa13543bf69216a9f6ac0
Bluetooth: l2cap_set_timer needs jiffies as timeout value

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@tieto.com>
Ackec-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/l2cap.h
net/bluetooth/l2cap_core.c