Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3993696imm; Wed, 5 Sep 2018 09:03:38 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaUGl9/nWUv+1WxQBuWdypB9JkUxqlrYgxvs7Ex3/lPj3A0TF5rUs3RMesOsnQ8ofsYMhAO X-Received: by 2002:a63:1363:: with SMTP id 35-v6mr37391977pgt.202.1536163418522; Wed, 05 Sep 2018 09:03:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536163418; cv=none; d=google.com; s=arc-20160816; b=w4bx803qIOjt8wX8FBIkWAx4R5UVtqAsnFyKQjQzwkpVG32/WLeBSnsabEbmU72yW4 So/Mp8aFckMytcTSOIm65741yDDxuVY3xeq5BchhHs3j/GftCTF7it0bZka+Qd1AS6DD mh5bQor6/5Yxw8PRLhHNyPtn/IOq37g7hHh7XcYbKYDhIRmcbAGZt3MToF7H+uQlzVgg dBpffbQs0Yh1FF0XA3Ybg8SLulhdi56fsmnI7HLWKF1S+Llq3oiw+DtxBAJYGuLgVEi0 /jEaKAyp1cyAnOxP12fN5i7mWeCHYRCPbRUkamo8GH4wM02PXvPSb/lZFMNX/gFXC9nT WYNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from; bh=kDl1L+rPM+UfDbAJ4eh9fIfGJRId4cTpd9TdFsvcPjo=; b=urgdYKrbEjjkusCGRUww7QQOYT04S/UOJSM/gkYtF50CADXZBQSBGYsD6NsA+uUH3z QLZyY8xMdws4pBiue5mu+yq0xygPZ/RDTVNANULrEiHeN4jKlwWZWf6zUIf6wpSFXk9k Zc2ZKygORePMXNXb7Oxkw9KCbhXmk54UYZ6E3RxzTdlr03E3ApZYNvgEsngLOWFBtqqq OCouxVBre9+gKXOmrca6tQp9gC5X/W9zMyV6MQv/WJyUXUMFI8ymKybTOgswh+AeC1pe pabnxgODoDvBpyX0xw0IUlnm77ksTczejqyasvNx43V/DPNlEtB54kpgi4MfKEjwmOlG LEgw== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b128-v6si2415884pfb.352.2018.09.05.09.03.22; Wed, 05 Sep 2018 09:03:38 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727853AbeIEUbP (ORCPT + 99 others); Wed, 5 Sep 2018 16:31:15 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:50266 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727791AbeIEUbN (ORCPT ); Wed, 5 Sep 2018 16:31:13 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w85FuVHm043350 for ; Wed, 5 Sep 2018 12:00:23 -0400 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0b-001b2d01.pphosted.com with ESMTP id 2mahf5ank1-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 05 Sep 2018 12:00:21 -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 priorityscore=1501 malwarescore=0 suspectscore=3 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=527 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809050164 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The functions are equivalent, just the later does not require nobootmem translation layer. Signed-off-by: Mike Rapoport --- 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) -- 2.7.4