From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S967070AbdEWI5K (ORCPT ); Tue, 23 May 2017 04:57:10 -0400 Received: from terminus.zytor.com ([65.50.211.136]:59187 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936668AbdEWI5F (ORCPT ); Tue, 23 May 2017 04:57:05 -0400 Date: Tue, 23 May 2017 01:52:20 -0700 From: tip-bot for Thomas Gleixner Message-ID: Cc: tglx@linutronix.de, viresh.kumar@linaro.org, mark.rutland@arm.com, linux-kernel@vger.kernel.org, rostedt@goodmis.org, rjw@rjwysocki.net, peterz@infradead.org, torvalds@linux-foundation.org, hpa@zytor.com, gregkh@linuxfoundation.org, mingo@kernel.org Reply-To: viresh.kumar@linaro.org, mark.rutland@arm.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, rostedt@goodmis.org, peterz@infradead.org, rjw@rjwysocki.net, torvalds@linux-foundation.org, gregkh@linuxfoundation.org, mingo@kernel.org, hpa@zytor.com In-Reply-To: <20170516184735.620023128@linutronix.de> References: <20170516184735.620023128@linutronix.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:sched/core] cpufreq/pasemi: Adjust system_state check Git-Commit-ID: d04e31a23c3c828456cb5613f391ce4ac4e5765f X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: d04e31a23c3c828456cb5613f391ce4ac4e5765f Gitweb: http://git.kernel.org/tip/d04e31a23c3c828456cb5613f391ce4ac4e5765f Author: Thomas Gleixner AuthorDate: Tue, 16 May 2017 20:42:40 +0200 Committer: Ingo Molnar CommitDate: Tue, 23 May 2017 10:01:36 +0200 cpufreq/pasemi: Adjust system_state check To enable smp_processor_id() and might_sleep() debug checks earlier, it's required to add system states between SYSTEM_BOOTING and SYSTEM_RUNNING. Adjust the system_state check in pas_cpufreq_cpu_exit() to handle the extra states. Signed-off-by: Thomas Gleixner Signed-off-by: Peter Zijlstra (Intel) Acked-by: Viresh Kumar Cc: Greg Kroah-Hartman Cc: Linus Torvalds Cc: Mark Rutland Cc: Peter Zijlstra Cc: Rafael J. Wysocki Cc: Steven Rostedt Cc: linuxppc-dev@lists.ozlabs.org Link: http://lkml.kernel.org/r/20170516184735.620023128@linutronix.de Signed-off-by: Ingo Molnar --- drivers/cpufreq/pasemi-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/pasemi-cpufreq.c b/drivers/cpufreq/pasemi-cpufreq.c index 35dd4d7..b257fc7 100644 --- a/drivers/cpufreq/pasemi-cpufreq.c +++ b/drivers/cpufreq/pasemi-cpufreq.c @@ -226,7 +226,7 @@ static int pas_cpufreq_cpu_exit(struct cpufreq_policy *policy) * We don't support CPU hotplug. Don't unmap after the system * has already made it to a running state. */ - if (system_state != SYSTEM_BOOTING) + if (system_state >= SYSTEM_RUNNING) return 0; if (sdcasr_mapbase)