Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1048072imj; Wed, 13 Feb 2019 23:55:55 -0800 (PST) X-Google-Smtp-Source: AHgI3IYcYUD471CUMStWMkJQRU6Aat4rq+4HxBxjCYPYamYNlhqOCUO4ZRu5cY+Fc/avLcxS1tje X-Received: by 2002:a63:f844:: with SMTP id v4mr2518070pgj.82.1550130955355; Wed, 13 Feb 2019 23:55:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550130955; cv=none; d=google.com; s=arc-20160816; b=zBq16xTPlaQ+Oup/Pn3If2v87+ulkXmksbws6RLTHvWAnd1CjPRc3EYUDaNM8+hH0B PGMdj7D9veFui4vZSF3iCcKW8GOiJo9ZD9nTObefQN8ghYOCgAe1ukTT6MEUiRxNyYEB kdhdc/4jEdFxTlAzC5nrJntbZug+twz4uiJG/59T79BTHPJx929Y5s0HnePzbKmNVDSg s5/M/s+9OxpzYGqsUWbMI+sM0tdbkVLHyLUHtqjcdupunv1gZnh6orGmv4QRQJbvwpR3 VmFUaqa/6DCRax1dwfxTgKWRWsZ2e+XpgIBPMNuRY5LUdGImW51x9Wqe9JGXjlcjOo2c UdMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=IE0nblK4CVq2BMMUjGO+eCm2IVZ6KsonSeJPOY2nrgs=; b=Ucir49IG9ldk75OoKDkFyB14dR85ilcT5AomoIWqGiDxUi80C09xWqgvbiSY+eeiyE DLyc11Psmh0KEuIbxtFDfvydJNEoquoCQB1tN1nBGNifZ+5UF1SzxfK4oPtwcIAKlbuu X8d7D5iRK/S1pXqvlETrrdC5/RhamQyFgUGQQvs0FkWx1BmisSVXIpnRSaTB62Z2chAZ sPMj0AfQpKRBEvsQAlx0qUlW/mAOe4MAhMU1ANukP6s5ypFLlqPSNEMJdQPzBQxKuXda tBAT8BLp+JQT1s6vnp1RpcUgvvtDI51aZAuyC/28aOTp/ZgbGYyAUBd0WcBl+HHMVOH7 QJmA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d6si1574674pgv.579.2019.02.13.23.55.32; Wed, 13 Feb 2019 23:55:55 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2394415AbfBMTeu (ORCPT + 99 others); Wed, 13 Feb 2019 14:34:50 -0500 Received: from mx0b-002e3701.pphosted.com ([148.163.143.35]:51576 "EHLO mx0b-002e3701.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728018AbfBMTeu (ORCPT ); Wed, 13 Feb 2019 14:34:50 -0500 Received: from pps.filterd (m0150245.ppops.net [127.0.0.1]) by mx0b-002e3701.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1DJMQIb006022; Wed, 13 Feb 2019 19:34:35 GMT Received: from g2t2354.austin.hpe.com (g2t2354.austin.hpe.com [15.233.44.27]) by mx0b-002e3701.pphosted.com with ESMTP id 2qmnqthxyg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 13 Feb 2019 19:34:35 +0000 Received: from sarge.linuxathome.me (unknown [16.99.162.65]) by g2t2354.austin.hpe.com (Postfix) with ESMTP id B556CBE; Wed, 13 Feb 2019 19:34:32 +0000 (UTC) From: Hedi Berriche To: linux-kernel@vger.kernel.org, Ard Biesheuvel , Thomas Gleixner , Bhupesh Sharma Cc: Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , linux-efi@vger.kernel.org, x86@kernel.org, Russ Anderson , Mike Travis , Dimitri Sivanich , Steve Wahl , stable@vger.kernel.org Subject: [Patch v3 3/4] x86/platform/UV: use efi_enabled() instead of test_bit() Date: Wed, 13 Feb 2019 19:34:12 +0000 Message-Id: <20190213193413.25560-4-hedi.berriche@hpe.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190213193413.25560-1-hedi.berriche@hpe.com> References: <20190213193413.25560-1-hedi.berriche@hpe.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-13_11:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=395 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902130132 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use ad hoc efi_enabled() instead of fiddling with test_bit(). Cleanup, no functional changes. Cc: Russ Anderson Cc: Mike Travis Cc: Dimitri Sivanich Cc: Steve Wahl Cc: stable@vger.kernel.org # v4.9+ Signed-off-by: Hedi Berriche --- arch/x86/platform/uv/bios_uv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/platform/uv/bios_uv.c b/arch/x86/platform/uv/bios_uv.c index 91e3d5285836..38a2e3431fc6 100644 --- a/arch/x86/platform/uv/bios_uv.c +++ b/arch/x86/platform/uv/bios_uv.c @@ -44,7 +44,7 @@ s64 uv_bios_call(enum uv_bios_cmd which, u64 a1, u64 a2, u64 a3, u64 a4, u64 a5) * If EFI_OLD_MEMMAP is set, we need to fall back to using our old EFI * callback method, which uses efi_call() directly, with the kernel page tables: */ - if (unlikely(test_bit(EFI_OLD_MEMMAP, &efi.flags))) + if (unlikely(efi_enabled(EFI_OLD_MEMMAP))) ret = efi_call((void *)__va(tab->function), (u64)which, a1, a2, a3, a4, a5); else ret = efi_call_virt_pointer(tab, function, (u64)which, a1, a2, a3, a4, a5); -- 2.20.1