From patchwork Tue Dec 4 10:10:45 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Baltieri X-Patchwork-Id: 1836971 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 97786DFB79 for ; Tue, 4 Dec 2012 10:11:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753398Ab2LDKLf (ORCPT ); Tue, 4 Dec 2012 05:11:35 -0500 Received: from mail-ee0-f46.google.com ([74.125.83.46]:50497 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753213Ab2LDKLb (ORCPT ); Tue, 4 Dec 2012 05:11:31 -0500 Received: by mail-ee0-f46.google.com with SMTP id e53so2131138eek.19 for ; Tue, 04 Dec 2012 02:11:30 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=mB9k7LepOONGf5FfXzzbPyK/CF/2cn5loWIfFhUt5UI=; b=YV7nmRUNK6Vu3bKPBpElY4vyZ5KBeVkjMcfnVyyrRXFKQurnQc0vnGRK1iTia0nGGr z9bKE5468Jn0qLBDnsuUS57u5d6qJ0P/YpXouSnxbu6Cqxcat7znx7ZHhl7pWxGxSkBw R6die8jVRbbYWS3FyjR6zNnQWe2Juhh8R6/cDLv3sbGC3iALMfbseK3jrKUve+nxdGJU 1tA+SpPZ7g206pGCq24KM7RvueC2rphVOuGdrTihWme+r2Lf+jR0pnTpEfKEG6v91ATA tNjpBA4sXU3V3j3+UAc+4tVgyBMOaX6Sce3yyOn2FoTH7wg24z9H924dKaAWlcLBVoKy /A+g== Received: by 10.14.176.66 with SMTP id a42mr46878294eem.34.1354615890819; Tue, 04 Dec 2012 02:11:30 -0800 (PST) Received: from localhost ([2a01:2003:1:1a30:8e70:5aff:feac:ad8]) by mx.google.com with ESMTPS id v46sm1733205eep.1.2012.12.04.02.11.27 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 04 Dec 2012 02:11:30 -0800 (PST) From: Fabio Baltieri To: John Stultz , Arnd Bergmann , Thomas Gleixner , "Rafael J. Wysocki" Cc: cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Fabio Baltieri Subject: [PATCH 2/2] cpufreq: db8500: set CPUFREQ_CONST_LOOPS Date: Tue, 4 Dec 2012 11:10:45 +0100 Message-Id: <1354615845-2758-3-git-send-email-fabio.baltieri@linaro.org> X-Mailer: git-send-email 1.7.12.1 In-Reply-To: <1354615845-2758-1-git-send-email-fabio.baltieri@linaro.org> References: <1354615845-2758-1-git-send-email-fabio.baltieri@linaro.org> X-Gm-Message-State: ALoCoQnNrfVasB6sLMgiTZszkmy+PlXwDwvwZqlJDT8EcTZLe0DKguEXru9JDC27ei0E6eIOkZs3 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org As ux500 is being converted to timer based delay loops, and the timer used is not depending on CPUs clock frequency, set cpufreq_driver flag CPUFREQ_CONST_LOOPS to prevent cpufreq rescaling loops_for_jiffies. Acked-by: Linus Walleij Signed-off-by: Fabio Baltieri --- drivers/cpufreq/db8500-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/db8500-cpufreq.c b/drivers/cpufreq/db8500-cpufreq.c index 74b830b..e758891 100644 --- a/drivers/cpufreq/db8500-cpufreq.c +++ b/drivers/cpufreq/db8500-cpufreq.c @@ -150,7 +150,7 @@ static int __cpuinit db8500_cpufreq_init(struct cpufreq_policy *policy) } static struct cpufreq_driver db8500_cpufreq_driver = { - .flags = CPUFREQ_STICKY, + .flags = CPUFREQ_STICKY | CPUFREQ_CONST_LOOPS, .verify = db8500_cpufreq_verify_speed, .target = db8500_cpufreq_target, .get = db8500_cpufreq_getspeed,