Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp414020imm; Wed, 19 Sep 2018 00:39:10 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbW+2T0/ff0F7Sil97yIYMWGvtqTZlgY5OfST4GqecNnQ0QoORScydMfiIQZaZkeNf45wVF X-Received: by 2002:a62:5a01:: with SMTP id o1-v6mr35041184pfb.0.1537342750231; Wed, 19 Sep 2018 00:39:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537342750; cv=none; d=google.com; s=arc-20160816; b=LG4NALmtnrdcS8l3VxweD6+m99MuP8JoyIFXxukouSSCur7o3tTNhkuvbvA8CLSa05 Sl1jawjDAd7vFaAvnRe+nePY28B1MHl4uGBq5qByoD2M5bgKRQzKz4FSn4Ni33cwmkfL UvACLPeS2V+PtlBdZMQdXbXtq5qjJcNj9+v73lNnUTG2P9pnlZqrUPxvBBgt8uG75W0i eo5+MPxa2N+6v0k4I8omef6YuUgilB7MHJ9lv7/tkBPwl5MApSkO7g4X8P0UFoUIghbE WUNo4IsD7G2iMS+NeN1OuppRQxD6SoJK/4u1eifSEfJAdDbahAyh1Fy/mEiIASImpx73 LmMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=Iu0P73IbBBMT5vMvEysWfXUH0SNJPackKeygymkJP40=; b=qf2Rqf7Q89aLAnyo2sowPSBFcn7xf/TowP5u+5+rf1ueFw0aviaFM8DewgcTJMThYX zFY3aG0nf36QKRWidVUMQMT7AX9St3EK8XBKE032GQPRE4Pwu5niLAwmF5M0myEXGDYm /I0avbhUx3OtqeoFjTp53YOldGJa7g0VQxt5kbQbG5sgSiVER+QijfOmVoIfX3uvbOER 6BLrB4Kv16Ni7qDTDxMqbg6o8vu2RtZpS52bLaJI/uLIbPbcH1o6RRjWonVBhr6BFsVI gyLQ7r4ER4VaKRT+Sf4DDd96/AU6ZOlv6cYVzgcKqtUWYGhVQ0fs7N18vWQty7MOyAyM aWpQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s20-v6si20664295pgl.335.2018.09.19.00.38.55; Wed, 19 Sep 2018 00:39:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731119AbeISNNl (ORCPT + 99 others); Wed, 19 Sep 2018 09:13:41 -0400 Received: from mga05.intel.com ([192.55.52.43]:23576 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727990AbeISNNk (ORCPT ); Wed, 19 Sep 2018 09:13:40 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 19 Sep 2018 00:37:01 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,393,1531810800"; d="scan'208";a="91368502" Received: from chenyu-desktop.sh.intel.com ([10.239.160.116]) by fmsmga001.fm.intel.com with ESMTP; 19 Sep 2018 00:36:58 -0700 From: Chen Yu To: Thomas Gleixner , "Rafael J. Wysocki" Cc: x86@kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Pavel Machek , Len Brown , Zhimin Gu , Yu Chen Subject: [PATCH 12/12][RFC v3] x86-32, hibernate: Adjust in_suspend after resumed on 32bit system Date: Wed, 19 Sep 2018 15:43:42 +0800 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhimin Gu Update the in_suspend variable to reflect the actual hibernation status. Back-port from 64bit system. Cc: "Rafael J. Wysocki" Signed-off-by: Zhimin Gu Signed-off-by: Chen Yu --- arch/x86/power/hibernate_asm_32.S | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/power/hibernate_asm_32.S b/arch/x86/power/hibernate_asm_32.S index 01f653fae7bd..6fe383002125 100644 --- a/arch/x86/power/hibernate_asm_32.S +++ b/arch/x86/power/hibernate_asm_32.S @@ -103,5 +103,8 @@ ENTRY(restore_registers) xorl %eax, %eax + /* tell the hibernation core that we've just restored the memory */ + movl %eax, in_suspend + ret ENDPROC(restore_registers) -- 2.17.1