Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp889086imj; Fri, 15 Feb 2019 08:26:24 -0800 (PST) X-Google-Smtp-Source: AHgI3IY5ZDgYziFQhy6i+y2qd9gyH8mXjHnYfIwUxYZLuvIWDVgrjta9ojoeaHx+NLvXCveAs+Bv X-Received: by 2002:a63:4703:: with SMTP id u3mr6091178pga.298.1550247984884; Fri, 15 Feb 2019 08:26:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550247984; cv=none; d=google.com; s=arc-20160816; b=tf/6KeBSIRjHaXB5DlNaSPR8k/GnPr3N0hYZIOEWGJlfeSV8og3gYyAybyjUdGxXzN gWPs9ZU3A0BSDb5fO3IXC0FVErGKiQMxHQCh9p+Hg8aMedJpirnqm3j89YB/Sf8YWi/L 2TgieO22SQOaJjjVcwKXaKd2yAsa9ngr6quu9JaXF/PvDJpp1XFvEWDIqVJ67Js3G1KP I6N7a3xd/t/9qBO8W3FMu0VB8P2qVUO08eozRdRT3cyvTFSsGfG2zcVDGdyTwOLrgA8m +znbpINhgJzbloqgBLggijfl0/78FxBTp0F+L480Oug1vJ4ThCkD04zDR+TyDYc2qUJ7 wB6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=zSMxYM1MqOE0dIKLRgITHKPyq937as37+SQ4eLzajPQ=; b=WBIj62QPR+aAOQ+3WA06RKifzCr3pM+mgmhvQlzQn0jEdEqMOPrcbQOrgblWmiy47Y CxepKPiVcwY2f2gA6UTealeHEVKYrSdwSoO+RhpN2tFUfDWFNLeaVgpjBjzfz2SvWPTw WxnJPEear33zHoLZwaGfuX5p3p+df51b3Ga0RKLuWY8Gjj9INhYRwZNEGwPjtkYy1QUO hFMnI16taiwbYHxIsCBwGxvsTK1h/DmResyFq9B3GlsddEnheQgoxePtrM6PzGXQZnSL AcF9IxpiU9ZC+Re8ZeiMdNSf5I45F/AFlMcmAISPrsPXrRdZERAVS1cA8Z5/QZO3s/0H 2R8g== 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 62si5734156plc.87.2019.02.15.08.26.09; Fri, 15 Feb 2019 08:26:24 -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 S1733028AbfBOPGD (ORCPT + 99 others); Fri, 15 Feb 2019 10:06:03 -0500 Received: from terminus.zytor.com ([198.137.202.136]:42397 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726137AbfBOPGD (ORCPT ); Fri, 15 Feb 2019 10:06:03 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x1FF5Xml1226341 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 15 Feb 2019 07:05:33 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x1FF5Wth1226336; Fri, 15 Feb 2019 07:05:32 -0800 Date: Fri, 15 Feb 2019 07:05:32 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Hedi Berriche Message-ID: Cc: linux-efi@vger.kernel.org, ard.biesheuvel@linaro.org, rja@hpe.com, mike.travis@hpe.com, bhsharma@redhat.com, mingo@redhat.com, mingo@kernel.org, bp@suse.de, x86@kernel.org, sivanich@hpe.com, hpa@zytor.com, tglx@linutronix.de, steve.wahl@hpe.com, linux-kernel@vger.kernel.org, andy@infradead.org, hedi.berriche@hpe.com, dvhart@infradead.org Reply-To: mingo@kernel.org, bp@suse.de, x86@kernel.org, sivanich@hpe.com, hpa@zytor.com, linux-efi@vger.kernel.org, ard.biesheuvel@linaro.org, rja@hpe.com, mike.travis@hpe.com, bhsharma@redhat.com, mingo@redhat.com, steve.wahl@hpe.com, andy@infradead.org, hedi.berriche@hpe.com, linux-kernel@vger.kernel.org, dvhart@infradead.org, tglx@linutronix.de In-Reply-To: <20190213193413.25560-4-hedi.berriche@hpe.com> References: <20190213193413.25560-4-hedi.berriche@hpe.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/uv] x86/platform/UV: Use efi_enabled() instead of test_bit() Git-Commit-ID: 8945d96f7b3ead56e053ac79b8f7b0de98a30bfe X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 8945d96f7b3ead56e053ac79b8f7b0de98a30bfe Gitweb: https://git.kernel.org/tip/8945d96f7b3ead56e053ac79b8f7b0de98a30bfe Author: Hedi Berriche AuthorDate: Wed, 13 Feb 2019 19:34:12 +0000 Committer: Borislav Petkov CommitDate: Fri, 15 Feb 2019 15:15:18 +0100 x86/platform/UV: Use efi_enabled() instead of test_bit() Use ad hoc efi_enabled() instead of fiddling with test_bit(). Cleanup, no functional changes. Signed-off-by: Hedi Berriche Signed-off-by: Borislav Petkov Reviewed-by: Ard Biesheuvel Reviewed-by: Russ Anderson Reviewed-by: Dimitri Sivanich Reviewed-by: Mike Travis Cc: Andy Shevchenko Cc: Bhupesh Sharma Cc: Darren Hart Cc: "H. Peter Anvin" Cc: Ingo Molnar Cc: linux-efi Cc: platform-driver-x86@vger.kernel.org Cc: Steve Wahl Cc: Thomas Gleixner Cc: x86-ml Link: https://lkml.kernel.org/r/20190213193413.25560-4-hedi.berriche@hpe.com --- 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);