Message ID | 1536927045-23536-11-git-send-email-rppt@linux.vnet.ibm.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D9CCF112B for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 14 Sep 2018 12:12:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B5A862B2A8 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 14 Sep 2018 12:12:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A8F802B2AB; Fri, 14 Sep 2018 12:12:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7996A2B2A8 for <patchwork-linux-mm@patchwork.kernel.org>; Fri, 14 Sep 2018 12:12:14 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C920A8E000C; Fri, 14 Sep 2018 08:12:12 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id C1A908E0001; Fri, 14 Sep 2018 08:12:12 -0400 (EDT) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A95168E000C; Fri, 14 Sep 2018 08:12:12 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-ot1-f70.google.com (mail-ot1-f70.google.com [209.85.210.70]) by kanga.kvack.org (Postfix) with ESMTP id 749C48E0001 for <linux-mm@kvack.org>; Fri, 14 Sep 2018 08:12:12 -0400 (EDT) Received: by mail-ot1-f70.google.com with SMTP id t56-v6so3539727oti.20 for <linux-mm@kvack.org>; Fri, 14 Sep 2018 05:12:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:in-reply-to:references:message-id; bh=4EF1XgJK+PvZSc15nnLkvVChr77nAcfzV/dg7iJasgE=; b=TgDQ5YEmo7YiyEApj678H0sa59tNovPfZ/YCXz3L2WjWt4FbWetWENLfDqjDKmw6gd 4isWmsCtp5Q7pTQpLV575XzZvoALmXGGQhop9gIGvnshCynujbeVhbrkhH6vJcMyvcXz k+u0yyYr9/d/ZxxH0KPlTLf4l6W7a+jvOIg/MbQsqipKEybc2suefikG1qqipjisb64E FkKqsjgXyiR9zu7B39TYFxzlWs6kvtfhudJZVrp+el47E5t0wff1Rpuy06IgYM6oJKtW DrZtmZyr0TyI33GHJyu6QaebbU4/4gQ81FF5K9Cz2R2zgXpXqHuFDAelXiHOcSk4K0bW vWsg== X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com X-Gm-Message-State: APzg51CyNFFsOaD+HkuHyBBuZOJ6tlyZW0PxhW6zf5z8e8C/d0Y944eD p8+9YAzHcWcykgZYFoOlX0Cz/23RhU75qA7sn/gP/AQoQHyeT4ZCpFIQQbi86FTVOy079anfi/s i9t+SvPjDXNMY4QgoPFZo11j9i2X0DUZAE8nP9myHaw+SquYAHPHJaLKv1Ale668= X-Received: by 2002:aca:7c2:: with SMTP id 185-v6mr9635831oih.31.1536927132213; Fri, 14 Sep 2018 05:12:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZKT1W4iUqZF5LG7dFzfo10wP0k4nYeM8OrcXsriMBDJoAmP+7Ks5LRxgh/okSnmaCStP2B X-Received: by 2002:aca:7c2:: with SMTP id 185-v6mr9635789oih.31.1536927131348; Fri, 14 Sep 2018 05:12:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536927131; cv=none; d=google.com; s=arc-20160816; b=X6vmpFYKrT8kmuBKdZp539BzOsn0eLX+RUpJcyrhek9yQ8aKqHvUpn2hSf+oCDBHI3 kCiGMSa8itn8LvMCOXWvO8mCkK6cBQUWzKVs1RxcWOeGOgMHeCL+cTzcAzK6qVsQkYrZ 1D3KIy1w11jNQQIvu74ymzm1DjY77ud607Mm6bjZypWzIYYpiD7AP4mqeXB0YFWMhaT7 BmZMVacM2PhedtDGH6aYKjC66+3Ir2Xoy6pGLnGpp7TFZpdoVNla2dtBrgz3+NqOLASt //n3VmPmE9H6oDDYgl+cGLn7jt2OlGZ7xiy/8QKOxf7c4iArOnf2ELvjmzQwNPC1BRWo Ap+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:references:in-reply-to:date:subject:cc:to:from; bh=4EF1XgJK+PvZSc15nnLkvVChr77nAcfzV/dg7iJasgE=; b=g0ZmQCPK644tia30WSumzKexcJNK+YlIqy6PvBqZGUHnByyEAO4h9dmeAsc/kfvV/h q19yFvAmcj4e3xxVztrHeog8GKI5MPuNY+vELS4xJOM6nbpv4Igo6ag9WaVxiRv4ZBAt dPFPxDy9Fg9Ohpl/JggRwFY3uM1bZBIgogoKEP+6E2LqJqJRr6gQwNZd92ykpV+eL5ho vNeHu/Hh3L/hPAj3ctzlfo14ZXt4L0bEaJy0KPH9RmcLKX7pSXoAOhz4hsiQEVdIYwqY spHdwjPETTsTF6CmaEGTatMRYMzW2c5Z0gBNOgFB2hCZO0UP4rsxFw54DYNL0fJJu2Ad A1rQ== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com. [148.163.156.1]) by mx.google.com with ESMTPS id 11-v6si1513660otn.335.2018.09.14.05.12.11 for <linux-mm@kvack.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 14 Sep 2018 05:12:11 -0700 (PDT) Received-SPF: neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) client-ip=148.163.156.1; Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.156.1 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) smtp.mailfrom=rppt@linux.vnet.ibm.com; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8EC5JY6053590 for <linux-mm@kvack.org>; Fri, 14 Sep 2018 08:12:10 -0400 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2mgcndrcr2-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for <linux-mm@kvack.org>; Fri, 14 Sep 2018 08:12:10 -0400 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for <linux-mm@kvack.org> from <rppt@linux.vnet.ibm.com>; Fri, 14 Sep 2018 13:12:06 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Fri, 14 Sep 2018 13:11:54 +0100 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w8ECBrSe55902380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 14 Sep 2018 12:11:53 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 62D5052052; Fri, 14 Sep 2018 15:11:41 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.207.116]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id 3D42C5204F; Fri, 14 Sep 2018 15:11:36 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Fri, 14 Sep 2018 15:11:47 +0300 From: Mike Rapoport <rppt@linux.vnet.ibm.com> To: linux-mm@kvack.org Cc: Andrew Morton <akpm@linux-foundation.org>, Catalin Marinas <catalin.marinas@arm.com>, Chris Zankel <chris@zankel.net>, "David S. Miller" <davem@davemloft.net>, Geert Uytterhoeven <geert@linux-m68k.org>, Greentime Hu <green.hu@gmail.com>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, Guan Xuetao <gxt@pku.edu.cn>, Ingo Molnar <mingo@redhat.com>, "James E.J. Bottomley" <jejb@parisc-linux.org>, Jonas Bonn <jonas@southpole.se>, Jonathan Corbet <corbet@lwn.net>, Ley Foon Tan <lftan@altera.com>, Mark Salter <msalter@redhat.com>, Martin Schwidefsky <schwidefsky@de.ibm.com>, Matt Turner <mattst88@gmail.com>, Michael Ellerman <mpe@ellerman.id.au>, Michal Hocko <mhocko@suse.com>, Michal Simek <monstr@monstr.eu>, Palmer Dabbelt <palmer@sifive.com>, Paul Burton <paul.burton@mips.com>, Richard Kuo <rkuo@codeaurora.org>, Richard Weinberger <richard@nod.at>, Rich Felker <dalias@libc.org>, Russell King <linux@armlinux.org.uk>, Serge Semin <fancer.lancer@gmail.com>, Thomas Gleixner <tglx@linutronix.de>, Tony Luck <tony.luck@intel.com>, Vineet Gupta <vgupta@synopsys.com>, Yoshinori Sato <ysato@users.sourceforge.jp>, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-c6x-dev@linux-c6x.org, linux-hexagon@vger.kernel.org, linux-ia64@vger.kernel.org, linux-kernel@vger.kernel.org, linux-m68k@lists.linux-m68k.org, linux-mips@linux-mips.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-um@lists.infradead.org, nios2-dev@lists.rocketboards.org, openrisc@lists.librecores.org, sparclinux@vger.kernel.org, uclinux-h8-devel@lists.sourceforge.jp, Mike Rapoport <rppt@linux.vnet.ibm.com> Subject: [PATCH 10/30] memblock: replace __alloc_bootmem_node_nopanic with memblock_alloc_try_nid_nopanic Date: Fri, 14 Sep 2018 15:10:25 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536927045-23536-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1536927045-23536-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18091412-0020-0000-0000-000002C64BF1 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18091412-0021-0000-0000-00002113ADDE Message-Id: <1536927045-23536-11-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-14_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=1 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=609 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809140129 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
mm: remove bootmem allocator
|
expand
|
diff --git a/arch/x86/kernel/setup_percpu.c b/arch/x86/kernel/setup_percpu.c index ea554f8..67d48e26 100644 --- a/arch/x86/kernel/setup_percpu.c +++ b/arch/x86/kernel/setup_percpu.c @@ -112,8 +112,10 @@ static void * __init pcpu_alloc_bootmem(unsigned int cpu, unsigned long size, pr_debug("per cpu data for cpu%d %lu bytes at %016lx\n", cpu, size, __pa(ptr)); } else { - ptr = __alloc_bootmem_node_nopanic(NODE_DATA(node), - size, align, goal); + ptr = memblock_alloc_try_nid_nopanic(size, align, goal, + BOOTMEM_ALLOC_ACCESSIBLE, + node); + pr_debug("per cpu data for cpu%d %lu bytes on node%d at %016lx\n", cpu, size, node, __pa(ptr)); }