From patchwork Wed Feb 19 22:51:28 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Easwar Hariharan X-Patchwork-Id: 13983084 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3644E23C8CC; Wed, 19 Feb 2025 22:51:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740005492; cv=none; b=MCtWpS0bzr3bBFFQ8XriaJ82ADX3cC140agz5UJT6AejoP3YtsXW+4t/b/F3IjsHYyntckN/NcDlcWY61qz1DLiQoqrjZzFoYygoILMTQ2QvOFpjkSytLu1wMPAjEde0I0aBwPwhH4TQnOqHGeDF8G6KyjPAqraxxWh+ChQNtpU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740005492; c=relaxed/simple; bh=pZjpSlTU9Gu1+mrJmipjqNGPZ19IIS+zBmhe//BAogQ=; h=From:Subject:Date:Message-Id:MIME-Version:Content-Type:To:Cc; b=LGQZt/No/3UZLtpAiABcszOyRSp98T5lIVx1T5KszJkamNVmOyX7voUwnzZGtj+siR7g+Emlj0oWRn2hWg+h+BUy+OpJQzIkNOiumMUOxP7TBRG9yRniHs8wP+pESIliJHu6utHt70Z2lpAwvMjdS02QsNCuTZEnEXLJW7wK3lk= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=ckcgofDE; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="ckcgofDE" Received: from eahariha-devbox.internal.cloudapp.net (unknown [40.91.112.99]) by linux.microsoft.com (Postfix) with ESMTPSA id A6D112043DEB; Wed, 19 Feb 2025 14:51:30 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com A6D112043DEB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1740005490; bh=kOHh9LYrSJLeelyupZnwHRYiV4YeXv4E28YqBvlGdQU=; h=From:Subject:Date:To:Cc:From; b=ckcgofDESTqrDjkAKYJcGMCKIwRyKk0HKgG5MUVCq+D6CYywX7jzELu1NqWGeTLAj IJe8BcCAT/TeJF+kEr+38Sye4i2lh44uIoYFdvfVfAb9P/0HibbhiHf1CbkmdLCnrV sjUfr2b18T1uNMJ2fdb2Zv0wJJoKI87uaxFKdRjs= From: Easwar Hariharan Subject: [PATCH 0/4] Bluetooth: Converge on using secs_to_jiffies() Date: Wed, 19 Feb 2025 22:51:28 +0000 Message-Id: <20250219-bluetooth-converge-secs-to-jiffies-v1-0-6ab896f5fdd4@linux.microsoft.com> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIAHBgtmcC/x2NQQqDQAwAvyI5N7CGFrVfkR7aNVsjZSObVQri3 xt6HBhmDjAuwgb35oDCu5hodmgvDcT5md+MMjkDBboFagd8fTauqnXGqHnn4oZxNKyKi6TkLST qr10cwpS4Aw+thZN8/5PxcZ4/GwAfiHQAAAA= X-Change-ID: 20250219-bluetooth-converge-secs-to-jiffies-22847c90dfe7 To: Marcel Holtmann , Luiz Augusto von Dentz , Johan Hedberg , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Simon Horman Cc: linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Easwar Hariharan X-Mailer: b4 0.14.2 This series converts users of msecs_to_jiffies() that either use the multiply pattern of either of: - msecs_to_jiffies(N*1000) or - msecs_to_jiffies(N*MSEC_PER_SEC) where N is a constant or an expression, to avoid the multiplication. The conversion is made with Coccinelle with the secs_to_jiffies() script in scripts/coccinelle/misc. Attention is paid to what the best change can be rather than restricting to what the tool provides. While here, convert a couple instances where the timeouts are denominated in seconds manually. This series is based on next-20250219 Signed-off-by: Easwar Hariharan --- Easwar Hariharan (4): Bluetooth: hci_vhci: convert timeouts to secs_to_jiffies() Bluetooth: MGMT: convert timeouts to secs_to_jiffies() Bluetooth: SMP: convert timeouts to secs_to_jiffies() Bluetooth: L2CAP: convert timeouts to secs_to_jiffies() drivers/bluetooth/hci_vhci.c | 4 ++-- include/net/bluetooth/l2cap.h | 4 ++-- net/bluetooth/hci_sync.c | 2 +- net/bluetooth/l2cap_core.c | 4 ++-- net/bluetooth/mgmt.c | 6 +++--- net/bluetooth/smp.c | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) --- base-commit: 8936cec5cb6e27649b86fabf383d7ce4113bba49 change-id: 20250219-bluetooth-converge-secs-to-jiffies-22847c90dfe7 Best regards,