From patchwork Fri Aug 16 02:25:10 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 19186 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qe0-f69.google.com (mail-qe0-f69.google.com [209.85.128.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 13E522486D for ; Fri, 16 Aug 2013 02:27:29 +0000 (UTC) Received: by mail-qe0-f69.google.com with SMTP id 1sf1693416qec.4 for ; Thu, 15 Aug 2013 19:27:28 -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=eRb9E6I4/INmCW0rm1OWxdAUNgkdLaZseN5OdhQ8RG0=; b=gpYz5O3ziuevfOJynn2oC0GGiOtiqhPnaeCuR+PGR2UvLlmJXBYEe+am5n4MebWVd2 axgEYrSvSEMJ/tCzsOmIZxzxI01OrVmPNXYiu1/ABMoovSeRrl8wluK8hfNmYmSIqE55 L44Lw9xofZ14uR+NffdpJWmIy/569tEur1oitUtP35IRRgnrF9sDWroDuqLdoU81pUK7 /t4fsMpe+ejK8fCTyHjRM7FDC3EI3ONDX+JCBIo1ZBlqhOLuRmgau5V2PcTVF7YOElmU 3aiOh8aumQSEHDyAeJCk64DAvPANG8TXmP/41l4PI1KFh6d+3B8tsWgzhEYgvzMgWUBv Gptw== X-Received: by 10.236.63.165 with SMTP id a25mr345234yhd.43.1376620048819; Thu, 15 Aug 2013 19:27:28 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.117.195 with SMTP id kg3ls663565qeb.27.gmail; Thu, 15 Aug 2013 19:27:28 -0700 (PDT) X-Received: by 10.221.47.193 with SMTP id ut1mr17245124vcb.8.1376620048633; Thu, 15 Aug 2013 19:27:28 -0700 (PDT) Received: from mail-vb0-f49.google.com (mail-vb0-f49.google.com [209.85.212.49]) by mx.google.com with ESMTPS id sh10si689049vcb.93.2013.08.15.19.27.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Aug 2013 19:27:28 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.212.49 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.49; Received: by mail-vb0-f49.google.com with SMTP id w16so1212770vbb.8 for ; Thu, 15 Aug 2013 19:27:28 -0700 (PDT) X-Gm-Message-State: ALoCoQnUias2cNmU2ihh/dienKKKhO0iNtighJ18WkkHc9/RA/1wy8FwwNGleHiAZlck79PmrKNp X-Received: by 10.52.34.74 with SMTP id x10mr14490940vdi.13.1376620048519; Thu, 15 Aug 2013 19:27:28 -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 u4csp45188vcz; Thu, 15 Aug 2013 19:27:27 -0700 (PDT) X-Received: by 10.68.99.98 with SMTP id ep2mr18271932pbb.6.1376620047501; Thu, 15 Aug 2013 19:27:27 -0700 (PDT) Received: from mail-pa0-f44.google.com (mail-pa0-f44.google.com [209.85.220.44]) by mx.google.com with ESMTPS id vs3si46335pab.172.1969.12.31.16.00.00 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 15 Aug 2013 19:27:27 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.44 is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=209.85.220.44; Received: by mail-pa0-f44.google.com with SMTP id fz6so1346925pac.3 for ; Thu, 15 Aug 2013 19:27:27 -0700 (PDT) X-Received: by 10.68.12.134 with SMTP id y6mr18632109pbb.29.1376620047142; Thu, 15 Aug 2013 19:27:27 -0700 (PDT) Received: from localhost ([122.172.193.46]) by mx.google.com with ESMTPSA id bt1sm3152667pbb.2.2013.08.15.19.27.23 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 15 Aug 2013 19:27:26 -0700 (PDT) From: Viresh Kumar 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 , Kukjin Kim Subject: [PATCH 13/34] cpufreq: exynos5440: set CPUFREQ_NO_NOTIFICATION flag Date: Fri, 16 Aug 2013 07:55:10 +0530 Message-Id: <14993d27bdc6a91eced0af5eb96bdb5ca6546cbf.1376619363.git.viresh.kumar@linaro.org> X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: 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.49 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: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , 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. Cc: Kukjin Kim Signed-off-by: Viresh Kumar Acked-By: Amit Daniel Kachhap Acked-by: Kukjin Kim --- drivers/cpufreq/exynos5440-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/exynos5440-cpufreq.c b/drivers/cpufreq/exynos5440-cpufreq.c index 91a64d6..8fb6183 100644 --- a/drivers/cpufreq/exynos5440-cpufreq.c +++ b/drivers/cpufreq/exynos5440-cpufreq.c @@ -323,7 +323,7 @@ static int exynos_cpufreq_cpu_init(struct cpufreq_policy *policy) } static struct cpufreq_driver exynos_driver = { - .flags = CPUFREQ_STICKY, + .flags = CPUFREQ_STICKY | CPUFREQ_NO_NOTIFICATION, .verify = cpufreq_generic_frequency_table_verify, .target_index = exynos_target, .get = exynos_getspeed,