From patchwork Wed Sep 5 15:59:24 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Rapoport X-Patchwork-Id: 10589141 Return-Path: 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 4100F112B for ; Wed, 5 Sep 2018 16:01:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1E37F2A6F3 for ; Wed, 5 Sep 2018 16:00:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1AC1C2A6B3; Wed, 5 Sep 2018 16:00:58 +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 96E142A761 for ; Wed, 5 Sep 2018 16:00:57 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A82936B7414; Wed, 5 Sep 2018 12:00:47 -0400 (EDT) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id A0F8F6B7415; Wed, 5 Sep 2018 12:00:47 -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 885FB6B7416; Wed, 5 Sep 2018 12:00:47 -0400 (EDT) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-oi0-f71.google.com (mail-oi0-f71.google.com [209.85.218.71]) by kanga.kvack.org (Postfix) with ESMTP id 57ADE6B7415 for ; Wed, 5 Sep 2018 12:00:47 -0400 (EDT) Received: by mail-oi0-f71.google.com with SMTP id c18-v6so9166061oiy.3 for ; Wed, 05 Sep 2018 09:00:47 -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=kDl1L+rPM+UfDbAJ4eh9fIfGJRId4cTpd9TdFsvcPjo=; b=WV0n1JVJg8ZrP8MffkwDZ9OfORslq0qeQLMtuDW5wtcFKlox2tiy8If/tp2i58XoeZ SO0nmUSHnYLFRtToeNoU7g9dpOKvMHu9Ynwh3vl8MkSXCr2ZI/W4do/JIAVx6fgUl8n5 gWoSbNKDfgv5V98HyRJEIXg4zbZKSjXi1Mm6SBMsjsefhXWNFn9DWz7zpuqQ0vHSXagH uB8idud0koqRd7b3dQMFaAquVpcFWlTVB1dLuua1yUPAOrZzdZXDf2FFic4VyBryhm5a Njvo4StsQqO4xZQzxmv8u0khvZLefwuxF1qfOP/vAaz5+bNsYnM5+4qAOm57juQ/0Uzx h4bw== X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 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: APzg51CErvhfDn0x3ry4wX3E/zml85a75Rpx0bTjPo40X8uIWjnSyW0Y kKhP6cQ21gpEUkgWXVBLbbo/R9knIiAKgNYsjBLPceqTyTA04SuvolHy3LFhDmEI42aW335TLu6 W/b81LnVxt+H5Sq8LAQnByGb5pr0qzASnOOqfYSFI30s+R+oJ+x1UCmtD6Utf3zw= X-Received: by 2002:aca:bbc4:: with SMTP id l187-v6mr28103906oif.278.1536163247165; Wed, 05 Sep 2018 09:00:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdadAoXJP+OgIvpu6KYxXBpOq/ieY/GCP20TaCqWdhFIxuJ1FA4BJMG2vfHonDnoH48w/ZYV X-Received: by 2002:aca:bbc4:: with SMTP id l187-v6mr28103860oif.278.1536163246597; Wed, 05 Sep 2018 09:00:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536163246; cv=none; d=google.com; s=arc-20160816; b=jvq22joU0YWO9E6b8adyak25DupP43cbHVoz3G/+IYxMf/ITvdgTjE+cnAjg92FxjK GHkKl1kspe3qENEW2gc+VNglYEk2rBiA2QqM77IBvk7zqoa92Xknr+TmqvPWWkU8ga2v 483zpd0qOr96KnSzMtt4SA7RhqaF3e4yVLl9Vx8zhz+Pwvr7fDHuzoikSPrzwwCzmivK Ps3VwIzkN6HZVGw8KBj7n/B3nI7+gjbOujfGZ9Dj5r70aQKyROq1nJEot1Hy+FjYy4Qp f6J6myWP0fDVrqZ1n0eOd2UbVJ/roNiAcPDB/UmGeyE+eJPxfrUbiSnn22fNdYZ23KnL NKyA== 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=kDl1L+rPM+UfDbAJ4eh9fIfGJRId4cTpd9TdFsvcPjo=; b=UlyKWTMZiZYloy9SqLe3D9ld0+fy3xsG1tt8PYdmSdxmWrcsWad3t7rwbhewhtTM4x CIDgXqKV8E3ghWHz2SH95YbXewF+IeQXWYFiN8AL1FCSUZXqMZRnkmYWS6ueNpff90u8 NzjRU/BcKOAx7BYhTk9EKrMKau5AKe63I0T8FoBdPVNDT4iUSEAOMXlnKqb617/Gh8pk S06599QvjOTJR3+Z5/Bk2tmGeuv0xAfddQglC5uTJvEbOc0wSa3oQz1cQSdUxodP5m3A kiTAdG6dekMVA+Abo+3vln0vZRfKuJigQIdAGoiiJnwJ6Wi6+RJVhuS83A+TOMBJ9kHd taQQ== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 148.163.158.5 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 (mx0b-001b2d01.pphosted.com. [148.163.158.5]) by mx.google.com with ESMTPS id 62-v6si1589529oid.374.2018.09.05.09.00.46 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 09:00:46 -0700 (PDT) Received-SPF: neutral (google.com: 148.163.158.5 is neither permitted nor denied by best guess record for domain of rppt@linux.vnet.ibm.com) client-ip=148.163.158.5; Authentication-Results: mx.google.com; spf=neutral (google.com: 148.163.158.5 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 (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w85FtXUQ022691 for ; Wed, 5 Sep 2018 12:00:46 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0a-001b2d01.pphosted.com with ESMTP id 2maj548jva-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 05 Sep 2018 12:00:20 -0400 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 5 Sep 2018 17:00:18 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 5 Sep 2018 17:00:13 +0100 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w85G0CWR23396438 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 5 Sep 2018 16:00:13 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7BE304204F; Wed, 5 Sep 2018 19:00:07 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 63B2442049; Wed, 5 Sep 2018 19:00:05 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.8.92]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Wed, 5 Sep 2018 19:00:05 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Wed, 05 Sep 2018 19:00:10 +0300 From: Mike Rapoport To: linux-mm@kvack.org Cc: Andrew Morton , "David S. Miller" , Greg Kroah-Hartman , Ingo Molnar , Michael Ellerman , Michal Hocko , Paul Burton , Thomas Gleixner , Tony Luck , linux-ia64@vger.kernel.org, linux-mips@linux-mips.org, linuxppc-dev@lists.ozlabs.org, sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: [RFC PATCH 09/29] memblock: replace alloc_bootmem_low with memblock_alloc_low Date: Wed, 5 Sep 2018 18:59:24 +0300 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536163184-26356-1-git-send-email-rppt@linux.vnet.ibm.com> References: <1536163184-26356-1-git-send-email-rppt@linux.vnet.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18090516-4275-0000-0000-000002B5BD16 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18090516-4276-0000-0000-000037BED7BD Message-Id: <1536163184-26356-10-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-05_09:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=3 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 lowpriorityscore=0 mlxlogscore=526 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809050164 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: X-Virus-Scanned: ClamAV using ClamSMTP The functions are equivalent, just the later does not require nobootmem translation layer. Signed-off-by: Mike Rapoport Acked-by: Michal Hocko --- arch/x86/kernel/tce_64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kernel/tce_64.c b/arch/x86/kernel/tce_64.c index f386bad..54c9b5a 100644 --- a/arch/x86/kernel/tce_64.c +++ b/arch/x86/kernel/tce_64.c @@ -173,7 +173,7 @@ void * __init alloc_tce_table(void) size = table_size_to_number_of_entries(specified_table_size); size *= TCE_ENTRY_SIZE; - return __alloc_bootmem_low(size, size, 0); + return memblock_alloc_low(size, size); } void __init free_tce_table(void *tbl)