Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp271369imm; Thu, 20 Sep 2018 23:22:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYgVL2UMVFWwR9Fm9HWlkivJsXAQbGlLt0IN2zYNrLtpEQuCmfkrM3D9cQNh2ed5gfNFn/Z X-Received: by 2002:a62:1bc2:: with SMTP id b185-v6mr45238014pfb.170.1537510932250; Thu, 20 Sep 2018 23:22:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537510932; cv=none; d=google.com; s=arc-20160816; b=hcCvqAdgJnwK4lolxIxlZV9JsI10qTWek2I+dk4Mld5HeeQerpGEqUyuA6C9KHJybc Mq8aFMJJRSTPHuYaasBoY0CReKhIPXuFScrhfb7053JHRGlPsz3OUsCGqyjDO3LOqt2J 8fTaV9Vl+GN8sB/D3TnHqCiB2LTzybFjyu/RTT076YS8ePGHansY+QfbVeC9NjJUGyDk 4na6UVfaQBGtnxHtBBA/tVQQRH8rF9QkKK2SKah2uMpukAW3o9SKjCf3ct8V03nEZvkF buR6c/FeU/AhFrmdVZDbDGdakYQtQcHix8ItnfyLDbRNeUJq6qM7rzdoKHn4T3rbe+1l unSg== 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=xOSw+AsTEb91ASJZ2nHLlPiS0bEn/FaSClajqI9SSoA=; b=Q//5a942rH75EoZ33JnV/YBGo5QULCx+53THDaA7gBSPlGXvXfxs+9DcbkVAQSuLnw nayfB/qFcK95BdhPXXlMAsAS3ic+vA72RqAfDY0XX8bFUS253koVU6XnifHZlCpAbfnH 5D44ik8YPboGwrRob4joahz1qhz/9imIQHkgcEZTRtBzLXScYQx7tKIA88poap4UVSXM DN7iCyiE1Y+nZ4Y6Hfjfj3Jz0JjbyM2o4tJMGnQPSx2uzoPztB2/ej0F4xdF6XydY7ls 3fYZzQYbbGt1jLlOuKUoZoH8FwK/Xl0+nBJX3/Mk6MZXdyc5QBCz/pviVEJqFyRZIDLJ CN2Q== 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 o19-v6si260547pgd.164.2018.09.20.23.21.56; Thu, 20 Sep 2018 23:22:12 -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 S2389415AbeIUMIj (ORCPT + 99 others); Fri, 21 Sep 2018 08:08:39 -0400 Received: from mga14.intel.com ([192.55.52.115]:60689 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725887AbeIUMIj (ORCPT ); Fri, 21 Sep 2018 08:08:39 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 20 Sep 2018 23:21:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,283,1534834800"; d="scan'208";a="74798985" Received: from chenyu-desktop.sh.intel.com ([10.239.160.116]) by orsmga007.jf.intel.com with ESMTP; 20 Sep 2018 23:21:15 -0700 From: Chen Yu To: Thomas Gleixner , "Rafael J. Wysocki" Cc: Pavel Machek , Len Brown , Zhimin Gu , Chen Yu , x86@kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" Subject: [PATCH 08/12][v4] x86-32, hibernate: Use the page size macro instead of constant value Date: Fri, 21 Sep 2018 14:28:01 +0800 Message-Id: <36f19e1280b5962e1e516fce4407473f8941d49a.1537448058.git.yu.c.chen@intel.com> 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 Convert the hard code into PAGE_SIZE for better scalability. No functional change. Cc: "Rafael J. Wysocki" Signed-off-by: Zhimin Gu Acked-by: Pavel Machek Signed-off-by: Chen Yu --- arch/x86/power/hibernate_asm_32.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/power/hibernate_asm_32.S b/arch/x86/power/hibernate_asm_32.S index f0627cf30a36..f5103ae96582 100644 --- a/arch/x86/power/hibernate_asm_32.S +++ b/arch/x86/power/hibernate_asm_32.S @@ -52,7 +52,7 @@ copy_loop: movl pbe_address(%edx), %esi movl pbe_orig_address(%edx), %edi - movl $1024, %ecx + movl $(PAGE_SIZE >> 2), %ecx rep movsl -- 2.17.1