From patchwork Mon Dec 7 14:11:59 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 65526 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB7EHers031284 for ; Mon, 7 Dec 2009 14:17:40 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935149AbZLGORc (ORCPT ); Mon, 7 Dec 2009 09:17:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S935155AbZLGORc (ORCPT ); Mon, 7 Dec 2009 09:17:32 -0500 Received: from mail-gx0-f226.google.com ([209.85.217.226]:54400 "EHLO mail-gx0-f226.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935149AbZLGORc (ORCPT ); Mon, 7 Dec 2009 09:17:32 -0500 Received: by gxk26 with SMTP id 26so4122251gxk.1 for ; Mon, 07 Dec 2009 06:17:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :subject; bh=wmqziA6DIl3uausKIqqZu/i6MI4gl2TytpBYHmdRsbk=; b=EhU78tWxCQ/RxBoskCqEhtBCXTTwnav9cfIP84N/+aschGx8HdpUAfZBJ7Aad6YagP e6Yv1YhuPna8cU4bMx6tmX95YpexHcdX4Fi2qQnJm5EfcQFzrzjthWVmbY1FdJNDFiy7 GRLbIJxjetAeZ0F+Wj2GQMK2sh55qPE3IOWLI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:subject; b=xHeJONqeMzBfS1mJ9jZ6K9qzglrtF5TRH3iMauGGgkM6DOaCAvo8BuWhHg/MdPD6sW 04kMEqiv+WA4av1G7b7g64Y0MXoLRQHadJ5McCEQJRhx6M1x4FYvqU2UgfbEMvU83OGH hjvuuTIB9JR2yULDAi/v1dVbnvXkFoGNBP6KQ= Received: by 10.101.144.14 with SMTP id w14mr2739334ann.109.1260195458336; Mon, 07 Dec 2009 06:17:38 -0800 (PST) Received: from rxone.opensource.se (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id 8sm2545682yxb.25.2009.12.07.06.17.36 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 07 Dec 2009 06:17:37 -0800 (PST) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Mon, 07 Dec 2009 23:11:59 +0900 Message-Id: <20091207141159.6318.90269.sendpatchset@rxone.opensource.se> Subject: [PATCH] sh: fix size calculation for NUMA node 0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org --- 0001/arch/sh/mm/numa.c +++ work/arch/sh/mm/numa.c 2009-12-07 21:13:58.000000000 +0900 @@ -28,7 +28,7 @@ void __init setup_memory(void) { unsigned long free_pfn = PFN_UP(__pa(_end)); u64 base = min_low_pfn << PAGE_SHIFT; - u64 size = (max_low_pfn << PAGE_SHIFT) - min_low_pfn; + u64 size = (max_low_pfn << PAGE_SHIFT) - base; lmb_add(base, size);