Message ID | 20191127072144.30537-4-lee.jones@linaro.org |
---|---|
State | Superseded |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:38d5:0:0:0:0:0 with SMTP id g82csp5735636ilf; Tue, 26 Nov 2019 23:22:11 -0800 (PST) X-Google-Smtp-Source: APXvYqwhSUSZfMurnTFEphIlY6Wq+kkIV1sluAM8pspauIU1TKfIQfVaGX5LOb5Yp4cpCd7fmEpV X-Received: by 2002:a17:906:b6c3:: with SMTP id ec3mr48753743ejb.27.1574839331263; Tue, 26 Nov 2019 23:22:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574839331; cv=none; d=google.com; s=arc-20160816; b=CxwRXhiz5u3VHjAq5bm0T+FCO+ypP9KicibpTSNnwubar73p51H92xI58u8RjT8zCm pZonfyRkDZPaoyPQSbV5gxuGtOrPbc3edhAaN4xsoILNae/hqzLPWe0leLtEw9rAz4vX xOGIjKfD6+KHWwtxRsD6WlOlJElq2fwJbch3rQc64ik4vcQzX+4QvsC7hZSl/v7ZEQ6G mk8N3LbVLAEa5U+II9lE5rvdGV68RIHk481cut0RDEYtguGXtlCMuvFfBVbS7te3a+wO CvCbYDjT5U+/xRSE7GqTAfvedSC6qmPMiYClnggpYlTZmM2qawBJ2Uo2krvk+JMVWsKG Pq0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=PNM5lccoBtUfm9iFogx92X5PMCn4g3/BVdMdr/P978Y=; b=CbVDNqs5sLePo5UfdKrYPJqMDE7pnGgiCF/mF4q7QP06ptvLlI1YTaDteSK6ReN9ys fHaY95qpxRrjA1fYHNiR8+ebMEKl6ZmlvVwBTfSJjJve59xoO14FYAnpuz6+7tAA+7uS 6abEgi2eGU69ycNJwd+ca4x3VuuqHxva2dcLquHUbJQnvxs8NnrjL/yLCzgJi3W6yCKn Ya1Kgl0HklvpqhoBmIRCCo8gBjMbTHelzcDzk5JAsi7vmztsn4xUhLPPm4MCwe8tlPm+ jHmKl9hcKObBpBERQGVpK7JT7gFeFIjwqFBYrGt81kTfUaeFgnUQrQmKg8WadsYAhjEZ 5c6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YsChHgYg; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <stable-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m19si69058ejc.66.2019.11.26.23.22.11; Tue, 26 Nov 2019 23:22:11 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YsChHgYg; spf=pass (google.com: best guess record for domain of stable-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=stable-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726478AbfK0HWK (ORCPT <rfc822;ralph.siemsen@linaro.org> + 15 others); Wed, 27 Nov 2019 02:22:10 -0500 Received: from mail-wr1-f67.google.com ([209.85.221.67]:40620 "EHLO mail-wr1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726373AbfK0HWK (ORCPT <rfc822;stable@vger.kernel.org>); Wed, 27 Nov 2019 02:22:10 -0500 Received: by mail-wr1-f67.google.com with SMTP id c14so750732wrn.7 for <stable@vger.kernel.org>; Tue, 26 Nov 2019 23:22:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=PNM5lccoBtUfm9iFogx92X5PMCn4g3/BVdMdr/P978Y=; b=YsChHgYggeUZO9x9e9+MAA/wLPYwxtb0tTDqUgr7RhlxiTZCy1wfvID4f0ZLOFFZel cx5N/hOLowxN/G8aa7qDfaEFMDayLwYP3QIxEGMAyDFmYXDvu5lEnO72YLs0yZbuVra+ xVVLqRIatINBrLPqBsjqxMCtdoakS7Ks9t3b/gH0pD3Ixn1IprUoR3VbV8qI9ApObG8c A+PuCnL8iU1w/YODr7JmsYJ+XPfHRli5u7SYp/mghJYaN/HptA35YdZ4XKCRTCZzZLGv CXBJ07Olkemq0kjMBAEemfiRvoteINGEW6dFGUnCbqlzUtf1ZFwVhuqBv020BJhYg54l LmUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PNM5lccoBtUfm9iFogx92X5PMCn4g3/BVdMdr/P978Y=; b=GJWq54cLyrGIhj1iy8aAlrFaj1eT73bPZUXGqNtgjyEhQ/UR6x1mpa4Bhkhl9VA93Q XCCjt0ZSJpBCpQdqwLD0Boew679oqUgFjn/MCxeANRtiMfRkkinCR6AX30HlsB2SzNSf mpqKXQYgfrkgya06jbm6ueqegSzAfZLxdkHsctrk6+X9cZgigiarAUiJ1AY+MdvOLbHO 9a0wisT6Bi7nCdBBIWcG3EoHbcjWBPxj9h0Ivn6DvIDQFNY0UdvVmk9ArXXbc7kv7TvZ uvUfdJrqCuk5u+XOtLjBS+x4ViB8kvePsHhBKEcupkMEzcfAK6sLCX5Eg9+iHaAWRNWp uCTg== X-Gm-Message-State: APjAAAUfJWtO9WL993m88CwowB/b0Pa8TfRFSfPYuyfEHwT1ZH2nTl2t JRXP1tUvqSTlg0FQLG4Hd7P+rPLFkB8= X-Received: by 2002:adf:b193:: with SMTP id q19mr40155798wra.78.1574839326144; Tue, 26 Nov 2019 23:22:06 -0800 (PST) Received: from localhost.localdomain ([95.149.164.101]) by smtp.gmail.com with ESMTPSA id e16sm17983130wrj.80.2019.11.26.23.22.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2019 23:22:05 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: stable@vger.kernel.org Subject: [PATCH 4.9 4/6] cpufreq: Skip cpufreq resume if it's not suspended Date: Wed, 27 Nov 2019 07:21:42 +0000 Message-Id: <20191127072144.30537-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20191127072144.30537-1-lee.jones@linaro.org> References: <20191127072144.30537-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: <stable.vger.kernel.org> X-Mailing-List: stable@vger.kernel.org |
Series |
[4.9,1/6] ARM: 8904/1: skip nomap memblocks while finding the lowmem/highmem boundary
|
expand
|
diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index d43cd983a7ec..04101a6dc7f5 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1646,6 +1646,9 @@ void cpufreq_resume(void) if (!cpufreq_driver) return; + if (unlikely(!cpufreq_suspended)) + return; + cpufreq_suspended = false; if (!has_target() && !cpufreq_driver->resume)