Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752522AbbFHGqd (ORCPT ); Mon, 8 Jun 2015 02:46:33 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:51130 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751419AbbFHGq1 (ORCPT ); Mon, 8 Jun 2015 02:46:27 -0400 Date: Sun, 07 Jun 2015 23:46:25 -0700 (PDT) Message-Id: <20150607.234625.611646802904960429.davem@davemloft.net> To: hofrat@osadl.org Cc: romieu@fr.zoreil.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V2] wan: dscc4: use msecs_to_jiffies for conversions From: David Miller In-Reply-To: <1433673346-22183-1-git-send-email-hofrat@osadl.org> References: <1433673346-22183-1-git-send-email-hofrat@osadl.org> X-Mailer: Mew version 6.6 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Sun, 07 Jun 2015 23:46:25 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 983 Lines: 24 From: Nicholas Mc Guire Date: Sun, 7 Jun 2015 12:35:46 +0200 > API compliance scanning with coccinelle flagged: > ./drivers/net/wan/dscc4.c:1036:1-33: > WARNING: timeout (10) seems HZ dependent > ./drivers/net/wan/dscc4.c:554:2-34: > WARNING: timeout (10) seems HZ dependent > ./drivers/net/wan/dscc4.c:599:2-34: > WARNING: timeout (10) seems HZ dependent > > Numeric constants passed to schedule_timeout_*() make the effective > timeout HZ dependent which does not seem to be the intent here. > Fixed up by converting the constant to jiffies with msecs_to_jiffies(), > passing 100ms (assuming HZ==100 in the original code). > > Signed-off-by: Nicholas Mc Guire Applied. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/