From patchwork Mon Feb 1 22:06:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matt Fleming X-Patchwork-Id: 60970 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp349944lbb; Mon, 1 Feb 2016 14:07:22 -0800 (PST) X-Received: by 10.98.74.9 with SMTP id x9mr42186306pfa.14.1454364442042; Mon, 01 Feb 2016 14:07:22 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r71si41999643pfa.179.2016.02.01.14.07.21; Mon, 01 Feb 2016 14:07:22 -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; dkim=pass header.i=@codeblueprint-co-uk.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932636AbcBAWHS (ORCPT + 30 others); Mon, 1 Feb 2016 17:07:18 -0500 Received: from mail-wm0-f48.google.com ([74.125.82.48]:38194 "EHLO mail-wm0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932299AbcBAWHN (ORCPT ); Mon, 1 Feb 2016 17:07:13 -0500 Received: by mail-wm0-f48.google.com with SMTP id p63so92244819wmp.1 for ; Mon, 01 Feb 2016 14:07:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codeblueprint-co-uk.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=tTTF761mCUxiFmFoGNKxzO+65YnRZYYmqCwzepgobKU=; b=daZEQ2R37ttoFcgIzvauObke6+0xvYkxhYS3uO0eAz4pLxwL3znV6KpKJeuSzXx2KX kMilFO2CQpZ1ICqFqy8Sisbni8Wz4kPewhHFvfHu1fdW4OPHVrIo6fD55Sc3xyhfftbI pVPLVkmJ+49wO2s8V7eJ7SFvmhdMNL5IJAtkrsfkmCBhfx2DTO/EBI/6hVmiQir9dFcS psilSWVq1rfEEg/UcQNK/1Vkq7gfxdc89aZNA1dBtrJ+a/V/oY3HAAT05aQK+t58XUFh JXU8QO7YN8G8ERva0OXw3b5ZfqiilWFkg+fxdc1JG0fEJVQ1yZkC5Brl//pAduKEQ5mx sIpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=tTTF761mCUxiFmFoGNKxzO+65YnRZYYmqCwzepgobKU=; b=MdKIgVB2F6+7oA89NZVFAZ3VfyxYqcwDlqqQvqKn33+qB9uef7QEpqAMvG9oRzGI96 Vv1RKvDjeCCH7kMQz/9czgM2kqAwOaQkK+dabMlTUC/AXHocDN4fQ3cBvi5qIPek8Rnk 9PEoWqlsoldyICDT834kW2wJWpNiXU86Msw9jje3Kes96U+Cs5MTv+vBCKttEz9mxXIT gD/4x08dWUbgXjrT43XUc2FQ6M9lUd28/JIhhRtDVYQbHtGHv5Kl3lRtvxysCn5HRyOt yZVgnVbTKHlcPua/4X4GWvx5MJDabi263GD0T5Ca0xYj6wVHYWKxM2BUlXJlrVqCxzvX KHDg== X-Gm-Message-State: AG10YOS2OlEtdnSsK1xGFBp79gwfgihezNr6FbNsr0orXEDfxXrOw0X2CALybtS3d3UZSA== X-Received: by 10.28.90.67 with SMTP id o64mr13359517wmb.38.1454364432252; Mon, 01 Feb 2016 14:07:12 -0800 (PST) Received: from localhost (5ec16434.skybroadband.com. [94.193.100.52]) by smtp.gmail.com with ESMTPSA id i12sm2599739wmf.10.2016.02.01.14.07.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 01 Feb 2016 14:07:11 -0800 (PST) From: Matt Fleming To: Ingo Molnar , "H . Peter Anvin" , Thomas Gleixner Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org, Ard Biesheuvel , Matt Fleming Subject: [PATCH 01/14] efi: Expose non-blocking set_variable() wrapper to efivars Date: Mon, 1 Feb 2016 22:06:55 +0000 Message-Id: <1454364428-494-2-git-send-email-matt@codeblueprint.co.uk> X-Mailer: git-send-email 2.6.2 In-Reply-To: <1454364428-494-1-git-send-email-matt@codeblueprint.co.uk> References: <1454364428-494-1-git-send-email-matt@codeblueprint.co.uk> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ard Biesheuvel Commit 6d80dba1c9fe ("efi: Provide a non-blocking SetVariable() operation") implemented a non-blocking alternative for the UEFI SetVariable() invocation performed by efivars, since it may occur in atomic context. However, this version of the function was never exposed via the efivars struct, so the non-blocking versions was not actually callable. Fix that. Fixes: 6d80dba1c9fe ("efi: Provide a non-blocking SetVariable() operation") Signed-off-by: Ard Biesheuvel Signed-off-by: Matt Fleming --- drivers/firmware/efi/efi.c | 1 + 1 file changed, 1 insertion(+) -- 2.6.2 diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index e9c458ba9353..0cd8f039602e 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c @@ -180,6 +180,7 @@ static int generic_ops_register(void) { generic_ops.get_variable = efi.get_variable; generic_ops.set_variable = efi.set_variable; + generic_ops.set_variable_nonblocking = efi.set_variable_nonblocking; generic_ops.get_next_variable = efi.get_next_variable; generic_ops.query_variable_store = efi_query_variable_store;