From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753947AbaEIACG (ORCPT ); Thu, 8 May 2014 20:02:06 -0400 Received: from mail-oa0-f50.google.com ([209.85.219.50]:56369 "EHLO mail-oa0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752620AbaEIACE (ORCPT ); Thu, 8 May 2014 20:02:04 -0400 MIME-Version: 1.0 In-Reply-To: <20140508205556.GJ3693@n2100.arm.linux.org.uk> References: <1399504982-31181-1-git-send-email-dianders@chromium.org> <20140508205556.GJ3693@n2100.arm.linux.org.uk> Date: Thu, 8 May 2014 17:02:02 -0700 X-Google-Sender-Auth: eWpwusT3Q9X2zUxt9KBr6TlnUY0 Message-ID: Subject: Re: [PATCH] ARM: Don't ever downscale loops_per_jiffy in SMP systems From: Doug Anderson To: Russell King - ARM Linux Cc: Nicolas Pitre , Viresh Kumar , "Rafael J. Wysocki" , Will Deacon , John Stultz , David Riley , "olof@lixom.net" , Sonny Rao , Richard Zhao , Santosh Shilimkar , Shawn Guo , Stephen Boyd , Marc Zyngier , Stephen Warren , Paul Gortmaker , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" , Thomas Gleixner , Mark Brown Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Russel, On Thu, May 8, 2014 at 1:55 PM, Russell King - ARM Linux wrote: > On Thu, May 08, 2014 at 11:06:24AM -0700, Doug Anderson wrote: >> I guess I would say that my patch is unhacking the this code. The >> code after my patch is simpler. I would perhaps argue that (ec971ea >> ARM: add cpufreq transiton notifier to adjust loops_per_jiffy for smp) >> should never have landed to begin with. > > That depends on your point of view. As I've already pointed out through > the examples of why udelay() is inaccurate, for driver authors, they > should assume that udelay() just gives you an "approximate" delay and > it has no accuracy. That disagrees with what Thomas Gleixner says at . It also seems like perhaps the regulator core is broken, then... If a udelay(30) can end up as a udelay(20) then we may return from a regulator code 10us earlier than we should and we'll assume that a regulator is ramped before it really is... I'm out tomorrow but I can confirm on Monday that I was really seeing udelay(30) be a udelay(20) without this patch.