From patchwork Fri Aug 16 02:25:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 2845451 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4F302BF546 for ; Fri, 16 Aug 2013 03:36:41 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 849CA2022D for ; Fri, 16 Aug 2013 03:36:40 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 905FE20205 for ; Fri, 16 Aug 2013 03:36:39 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VA9nZ-0004fA-QE; Fri, 16 Aug 2013 02:29:58 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1VA9mt-0006s5-Ul; Fri, 16 Aug 2013 02:29:16 +0000 Received: from mail-pa0-f45.google.com ([209.85.220.45]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VA9ly-0006gY-JN for linux-arm-kernel@lists.infradead.org; Fri, 16 Aug 2013 02:28:19 +0000 Received: by mail-pa0-f45.google.com with SMTP id bg4so1340847pad.32 for ; Thu, 15 Aug 2013 19:27:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=M4gO3AcfUrkhx7NvShRC15kl8/cDtQ8mSUdIekQRdnE=; b=aY+EEb/q4wcw9PKzM72ONSaPST29+Z+PxM/e6t/rhmP+E0D8eTkOtK9oZ25co5WuEC erqJlUxVZdOYwbU2t6hQk+5jNDJ/MwWDp1Czkj/6V4GJ5O+vEGi4FubIyc6Bx/qMsqfp betGj5uzYcUowFbaW+Gydc11pwoqoYjU70Nb8QSSFE/j6TzR1i1Mxrj+tUI+PprN7X0N 22sY/lPFuXFQxIVnELmMKwW+pS9WnNkDCcKaS+zJe4tobPMTfUUnEbUNpmdggSh8nfwS raFfqUC4LD+oyRaiJs2y7cHah03ErKDHDgZx3lbEKaHwQ9WpHOjlgCJY7twzKwGexCYj x6cg== X-Gm-Message-State: ALoCoQn1qE4A83WZ+X2AO/lbbYHFmOvDT4JqtbWkjissZ+GSzB6POCCbuwEYZWKae1nLPsQCRIWQ X-Received: by 10.66.155.102 with SMTP id vv6mr620331pab.89.1376620077126; Thu, 15 Aug 2013 19:27:57 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id fk4sm80559pab.23.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 15 Aug 2013 19:27:56 -0700 (PDT) From: Viresh Kumar To: rjw@sisk.pl Subject: [PATCH 17/34] cpufreq: longhaul: set CPUFREQ_NO_NOTIFICATION flag Date: Fri, 16 Aug 2013 07:55:14 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130815_222818_755762_04E663C1 X-CRM114-Status: UNSURE ( 9.70 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, Viresh Kumar , patches@linaro.org, linux-kernel@vger.kernel.org, cpufreq@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-7.0 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Most of the drivers do following in their ->target_index() routines: struct cpufreq_freqs freqs; freqs.old = old freq... freqs.new = new freq... cpufreq_notify_transition(policy, &freqs, CPUFREQ_PRECHANGE); /* Change rate here */ cpufreq_notify_transition(policy, &freqs, CPUFREQ_POSTCHANGE); This is replicated over all cpufreq drivers today and there doesn't exists a good enough reason why this shouldn't be moved to cpufreq core instead. Earlier patches have added support in cpufreq core to do cpufreq notification on frequency change, but this drivers needs to do this notification itself and so it sets its CPUFREQ_NO_NOTIFICATION flag. Signed-off-by: Viresh Kumar --- drivers/cpufreq/longhaul.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/cpufreq/longhaul.c b/drivers/cpufreq/longhaul.c index 45bafdd..7359043 100644 --- a/drivers/cpufreq/longhaul.c +++ b/drivers/cpufreq/longhaul.c @@ -909,6 +909,7 @@ static int longhaul_cpu_init(struct cpufreq_policy *policy) } static struct cpufreq_driver longhaul_driver = { + .flags = CPUFREQ_NO_NOTIFICATION, .verify = cpufreq_generic_frequency_table_verify, .target_index = longhaul_target, .get = longhaul_get,