[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <94F2FBAB4432B54E8AACC7DFDE6C92E37E5924DB@ORSMSX110.amr.corp.intel.com>
Date: Wed, 12 Apr 2017 15:29:55 +0000
From: "Moore, Robert" <robert.moore@...el.com>
To: Guenter Roeck <linux@...ck-us.net>,
"Zheng, Lv" <lv.zheng@...el.com>,
"Wysocki, Rafael J" <rafael.j.wysocki@...el.com>,
Len Brown <lenb@...nel.org>
CC: "linux-acpi@...r.kernel.org" <linux-acpi@...r.kernel.org>,
"devel@...ica.org" <devel@...ica.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH] ACPICA: Export mutex functions
The ACPICA mutex functions are based on the host OS functions, so they don't really buy you anything. You should just use the native Linux functions.
> -----Original Message-----
> From: Guenter Roeck [mailto:linux@...ck-us.net]
> Sent: Wednesday, April 12, 2017 8:13 AM
> To: Moore, Robert <robert.moore@...el.com>; Zheng, Lv
> <lv.zheng@...el.com>; Wysocki, Rafael J <rafael.j.wysocki@...el.com>;
> Len Brown <lenb@...nel.org>
> Cc: linux-acpi@...r.kernel.org; devel@...ica.org; linux-
> kernel@...r.kernel.org; Guenter Roeck <linux@...ck-us.net>
> Subject: [PATCH] ACPICA: Export mutex functions
>
> 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 <linux@...ck-us.net>
> ---
> 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)
> --
> 2.7.4
Powered by blists - more mailing lists