Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752759AbbFGHSL (ORCPT ); Sun, 7 Jun 2015 03:18:11 -0400 Received: from shards.monkeyblade.net ([149.20.54.216]:39410 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751423AbbFGHSB (ORCPT ); Sun, 7 Jun 2015 03:18:01 -0400 Date: Sun, 07 Jun 2015 00:18:00 -0700 (PDT) Message-Id: <20150607.001800.854104281240414676.davem@davemloft.net> To: hofrat@osadl.org Cc: kas@fi.muni.cz, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cosa: use msecs_to_jiffies for conversions From: David Miller In-Reply-To: <1433577111-7404-1-git-send-email-hofrat@osadl.org> References: <1433577111-7404-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 00:18:00 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1129 Lines: 31 From: Nicholas Mc Guire Date: Sat, 6 Jun 2015 09:51:51 +0200 > @@ -517,7 +517,7 @@ static int cosa_probe(int base, int irq, int dma) > */ > set_current_state(TASK_INTERRUPTIBLE); > cosa_putstatus(cosa, SR_TX_INT_ENA); > - schedule_timeout(30); > + schedule_timeout(msecs_to_jiffies(300)); > irq = probe_irq_off(irqs); > /* Disable all IRQs from the card */ > cosa_putstatus(cosa, 0); You are making these transformations completely inconsistently. You're converting it to msecs in some patches and here you are doing something else. Please do _all_ of these transformations consistently and in a way that minimizes the chances of breaking things. And the only way to do that is to strictly convert these cases to whatever it works out to when HZ=100 since that is strictly the environment all of this old code was written in. Thank you. -- 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/