Message ID | b67c7b6951b63ff38bac847e0b213bff3368e0b7.1376619363.git.viresh.kumar@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBCRIZROPVQPBBLU4W2IAKGQE7IVMXUA@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ve0-f200.google.com (mail-ve0-f200.google.com [209.85.128.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id CDEE22486D for <linaro@patches.linaro.org>; Fri, 16 Aug 2013 02:27:58 +0000 (UTC) Received: by mail-ve0-f200.google.com with SMTP id oz10sf1868485veb.7 for <linaro@patches.linaro.org>; Thu, 15 Aug 2013 19:27:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-gm-message-state:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:in-reply-to:references :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=M4gO3AcfUrkhx7NvShRC15kl8/cDtQ8mSUdIekQRdnE=; b=dYATZlHr4izR9JoFFLyybv6ix7duFfZRlHeMOXP3mk81J5LVz+KQksN3wPX4zDK5kt OLnA6z1nlIQmn42nn1PuyR4PsgCPibQnlMM9r8iq165aeu2NhV/ztB3oECdSjWCey9l/ n/AhFjgdC/Y5YDiYA8znjfhiDTYfNgcG+X5D7B6oAJKmFGegnSjbKtC80zLdkrJCa0J6 peW5e3jetppIN0IK/t5jfV9dXRKePMYWBjxp1u2bP914ZVjerIexTWUmjROKICoRPEY9 Ij9MGlT5q2/EQ2ic/7G9RcEBdsovAXEJnMTChSfapjWC2RKBXZaj90vzfhaktXzjL/NV 2GCg== X-Received: by 10.58.67.7 with SMTP id j7mr5303246vet.37.1376620078524; Thu, 15 Aug 2013 19:27:58 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.82.74 with SMTP id g10ls637314qey.60.gmail; Thu, 15 Aug 2013 19:27:58 -0700 (PDT) X-Received: by 10.52.229.73 with SMTP id so9mr5583075vdc.27.1376620078390; Thu, 15 Aug 2013 19:27:58 -0700 (PDT) Received: from mail-vb0-f50.google.com (mail-vb0-f50.google.com [209.85.212.50]) by mx.google.com with ESMTPS id vv9si772105vec.5.2013.08.15.19.27.58 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Aug 2013 19:27:58 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.50 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.50; Received: by mail-vb0-f50.google.com with SMTP id x14so1216069vbb.23 for <patchwork-forward@linaro.org>; Thu, 15 Aug 2013 19:27:58 -0700 (PDT) X-Gm-Message-State: ALoCoQnsCei1Qxg4Bv/X5r6mR4HJU7oRXuYhng/33i/X8ClshIrv4LmB58TKs6L8wgGsWGVmgoYN X-Received: by 10.221.36.4 with SMTP id sy4mr17545971vcb.11.1376620078307; Thu, 15 Aug 2013 19:27:58 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.220.174.196 with SMTP id u4csp45204vcz; Thu, 15 Aug 2013 19:27:57 -0700 (PDT) X-Received: by 10.66.102.1 with SMTP id fk1mr622589pab.90.1376620077518; Thu, 15 Aug 2013 19:27:57 -0700 (PDT) Received: from mail-pb0-f44.google.com (mail-pb0-f44.google.com [209.85.160.44]) by mx.google.com with ESMTPS id aq4si1646952pbd.356.2013.08.15.19.27.57 for <patches@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Aug 2013 19:27:57 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.160.44 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.160.44; Received: by mail-pb0-f44.google.com with SMTP id xa7so1473330pbc.17 for <patches@linaro.org>; Thu, 15 Aug 2013 19:27:57 -0700 (PDT) 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 <viresh.kumar@linaro.org> To: rjw@sisk.pl Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, cpufreq@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Viresh Kumar <viresh.kumar@linaro.org> Subject: [PATCH 17/34] cpufreq: longhaul: set CPUFREQ_NO_NOTIFICATION flag Date: Fri, 16 Aug 2013 07:55:14 +0530 Message-Id: <b67c7b6951b63ff38bac847e0b213bff3368e0b7.1376619363.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: <cover.1376619363.git.viresh.kumar@linaro.org> References: <cover.1376619363.git.viresh.kumar@linaro.org> In-Reply-To: <cover.1376619363.git.viresh.kumar@linaro.org> References: <cover.1376619363.git.viresh.kumar@linaro.org> X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.50 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: <patchwork-forward.linaro.org> X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe>, <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com> |
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,
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 <viresh.kumar@linaro.org> --- drivers/cpufreq/longhaul.c | 1 + 1 file changed, 1 insertion(+)