From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755219AbdKATis (ORCPT ); Wed, 1 Nov 2017 15:38:48 -0400 Received: from smtp2-g21.free.fr ([212.27.42.2]:25520 "EHLO smtp2-g21.free.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755081AbdKATiq (ORCPT ); Wed, 1 Nov 2017 15:38:46 -0400 Subject: Re: [RFC] Improving udelay/ndelay on platforms where that is possible To: Linus Torvalds Cc: Alan Cox , LKML , Linux ARM , Steven Rostedt , Ingo Molnar , Thomas Gleixner , Peter Zijlstra , John Stultz , Douglas Anderson , Nicolas Pitre , Mark Rutland , Will Deacon , Jonathan Austin , Arnd Bergmann , Kevin Hilman , Russell King , Michael Turquette , Stephen Boyd , Mason References: <20171101175325.2557ce85@alans-desktop> <4b707ce0-6067-ab36-e167-1acf348d26bf@free.fr> From: Marc Gonzalez Message-ID: Date: Wed, 1 Nov 2017 20:38:42 +0100 User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:52.0) Gecko/20100101 Firefox/52.0 SeaMonkey/2.49.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/11/2017 20:09, Linus Torvalds wrote: > On Wed, Nov 1, 2017 at 12:03 PM, Marc Gonzalez wrote: > >> By default, ndelay is implemented in terms of udelay. > > That's very much *NOT* the case. > > Yes, there is a *fallback* for when somebody doesn't do ndelay() at > all, but that doesn't make it the default. > > It's just a "the architecture didn't implement ndelay at all, we'll > work around it". Yes, sorry, I wrote "default" when I meant "fallback". (arm32 currently does not define a specific ndelay implementation.) > So stop this idiocy already. About half of what I've seen in this > thread has been pure garbage. OK, I'll just send my patch, and then crawl back under my rock. Regards.