Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp413233imm; Wed, 19 Sep 2018 00:38:06 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYExJXuAUdYQ0ZbtXjqJqFnqQ39e6+6YnzkfdfynO6U2/R3zc/QZHPMoekYIuq7fT+lB1dW X-Received: by 2002:a63:2701:: with SMTP id n1-v6mr31198159pgn.146.1537342686376; Wed, 19 Sep 2018 00:38:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537342686; cv=none; d=google.com; s=arc-20160816; b=RpEgmMbER0VpOQM7H5M8o8RiiWZAzYF3uJcvB4GsYeIyuJYfkm9xZBJLZ2V0zlxw/f Acn/FMeD7M7e6Lv4C1remmm19ejCMUHrXcvH+StT39okb+FMrVw4IXvXTw/8m0Eqtowj sGJ2SG5pDUNJ8c8uTfZ51YFZSaREuS5JRljenZ4GxCJvFMDl6DIFDcyjgV9tqvNbbM04 jLgYvQLkxhDaVYlewiqWBzmaeaJeir60SBz50Nx0xGW4UjmLVtgo9KzfSsCdSQcpVnxW kupRsJNr7wAQwyTEh8nld/0MxrkLQuCWQRqIJyg7BJ3tmtrJ6a4VnR8zKvWP8gmYynkR WyvQ== 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=ZMYy0OxVza3jC22u6OdFx3bLHtsEswE6GhTBgPDfTKs=; b=zN2336Wct8DlMlrN1eEbiek3oYPtK+wcXHFtCT/ZDHX4EgT4ojjp/fdcwhs34Bhe9i CM3Vaxxu2S9L0ri3Xv8nPb1u2JloMAmZS6E5yLuJVvcINJaujujpQvO/Si8plydq77cg cqyom+sykSIZ3iMgXZNUmEplCTUeAZP5+HDxUIhQSgAnRHLdO2+RGM7n15JfKc61HMqb /EuPepnSYPoV4hCBp2X6BOQa7PZmM5J+n+CQnnN00denTPGLf2Vs8/Gxa4RzCKpyW+nw xyEv1e9vepximw9qXFPgec+WR/223eUGd7c763k2RKQX3kPrkwCH1dkw1eFynH7zzKLq EBGA== 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 z16-v6si17891185pgi.252.2018.09.19.00.37.51; Wed, 19 Sep 2018 00:38:06 -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 S1731001AbeISNMx (ORCPT + 99 others); Wed, 19 Sep 2018 09:12:53 -0400 Received: from mga05.intel.com ([192.55.52.43]:23411 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726972AbeISNMx (ORCPT ); Wed, 19 Sep 2018 09:12:53 -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:36:14 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,393,1531810800"; d="scan'208";a="91368418" Received: from chenyu-desktop.sh.intel.com ([10.239.160.116]) by fmsmga001.fm.intel.com with ESMTP; 19 Sep 2018 00:36:11 -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 08/12][RFC v3] x86-32, hibernate: Use the page size macro instead of constant value Date: Wed, 19 Sep 2018 15:42:57 +0800 Message-Id: <7f11d3a91409a5c3a3a6cf8e05c8e9e9b2d1e6ea.1537275915.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 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