Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1160005 > unrolled thread

Re: [PATCH] cosa: use msecs_to_jiffies for conversions

Started byDavid Miller <davem@davemloft.net>
First post2015-06-07 09:20 +0200
Last post2015-06-07 09:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH] cosa: use msecs_to_jiffies for conversions David Miller <davem@davemloft.net> - 2015-06-07 09:20 +0200

#1160005 — Re: [PATCH] cosa: use msecs_to_jiffies for conversions

FromDavid Miller <davem@davemloft.net>
Date2015-06-07 09:20 +0200
SubjectRe: [PATCH] cosa: use msecs_to_jiffies for conversions
Message-ID<pyD29-z5-5@gated-at.bofh.it>
From: Nicholas Mc Guire <hofrat@osadl.org>
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/

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web