From patchwork Wed Apr 12 15:13:10 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 9677609 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 62A5A60383 for ; Wed, 12 Apr 2017 15:13:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 543A12097A for ; Wed, 12 Apr 2017 15:13:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 47291285F3; Wed, 12 Apr 2017 15:13:42 +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=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D1E032097A for ; Wed, 12 Apr 2017 15:13:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754573AbdDLPNW (ORCPT ); Wed, 12 Apr 2017 11:13:22 -0400 Received: from bh-25.webhostbox.net ([208.91.199.152]:54583 "EHLO bh-25.webhostbox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754571AbdDLPNV (ORCPT ); Wed, 12 Apr 2017 11:13:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=roeck-us.net; s=default; h=Message-Id:Date:Subject:Cc:To:From:Sender: Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=bpuAICS5SrcZOGHQB4PpgU3/BowErhmSfFhaAuJ2Xp0=; b=AJHhrRtW9wNZY8/qqvUliRuMhc e5ptP7M5+GEwwW7qBa2zjo0v5z9DsUVho/+Ga1oGK17HJqZnUkvb8J345bt0sbIsgo/jkJWC1GJGJ Jv4XjDLZoHHDlLeDJdnYKw+XMwcXW2762rTuv8qs0PauTwOWgTLvYwaJ7GShAQWni/t0Q4i+KMq7t SeyaNmP00Q+7IEqQwIYOQ2m8esG5Az2Jh4gsYSJe/7qfyHQwAE3I46NFTdiVvaDpOoJfdH47fylDL dniaXts38KfSY45x5RnAh/AzoCzcKeu7Ge8auyBfWJt8Kdzn1T6TqaX+l9TdCNL7gHnlYRP9YovJt an+XX1fA==; Received: from 108-223-40-66.lightspeed.sntcca.sbcglobal.net ([108.223.40.66]:58484 helo=localhost) by bh-25.webhostbox.net with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from ) id 1cyJxK-003kG4-0Z; Wed, 12 Apr 2017 15:13:14 +0000 From: Guenter Roeck To: Robert Moore , Lv Zheng , "Rafael J . Wysocki" , Len Brown Cc: linux-acpi@vger.kernel.org, devel@acpica.org, linux-kernel@vger.kernel.org, Guenter Roeck Subject: [PATCH] ACPICA: Export mutex functions Date: Wed, 12 Apr 2017 08:13:10 -0700 Message-Id: <1492009990-3539-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.7.4 X-Authenticated_sender: guenter@roeck-us.net X-OutGoing-Spam-Status: No, score=-1.0 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - bh-25.webhostbox.net X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - roeck-us.net X-Get-Message-Sender-Via: bh-25.webhostbox.net: authenticated_id: guenter@roeck-us.net X-Authenticated-Sender: bh-25.webhostbox.net: guenter@roeck-us.net X-Source: X-Source-Args: X-Source-Dir: Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Mutex functions may be needed by drivers. Examples are accesses to Super-IO SIO registers (0x2e/0x2f or 0x4e/0x4f) or Super-IO environmental monitor registers, both which may also be accessed through DSDT. Signed-off-by: Guenter Roeck --- drivers/acpi/acpica/utxfmutex.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/acpi/acpica/utxfmutex.c b/drivers/acpi/acpica/utxfmutex.c index c016211c35ae..5d20581f4b2f 100644 --- a/drivers/acpi/acpica/utxfmutex.c +++ b/drivers/acpi/acpica/utxfmutex.c @@ -150,6 +150,7 @@ acpi_acquire_mutex(acpi_handle handle, acpi_string pathname, u16 timeout) status = acpi_os_acquire_mutex(mutex_obj->mutex.os_mutex, timeout); return (status); } +ACPI_EXPORT_SYMBOL(acpi_acquire_mutex) /******************************************************************************* * @@ -185,3 +186,4 @@ acpi_status acpi_release_mutex(acpi_handle handle, acpi_string pathname) acpi_os_release_mutex(mutex_obj->mutex.os_mutex); return (AE_OK); } +ACPI_EXPORT_SYMBOL(acpi_release_mutex)