From: Lin Ming <ming.m.lin@intel.com>
To: lenb <lenb@kernel.org>
Cc: Lukas Hejtmanek <xhejtman@ics.muni.cz>,
"Moore, Robert" <robert.moore@intel.com>,
linux-acpi <linux-acpi@vger.kernel.org>
Subject: Re: [PATCH 2/2] acpi: allow to add/remove multiple _OSI strings
Date: Thu, 09 Dec 2010 23:09:17 +0800 [thread overview]
Message-ID: <1291907357.2181.4.camel@localhost> (raw)
In-Reply-To: <AANLkTi=fw9Hoo6=hgu4_VndoDzd_T4Mq4bV9tVSvPLft@mail.gmail.com>
On Thu, 2010-12-09 at 23:04 +0800, Lin Ming wrote:
> ---------- Forwarded message ----------
> From: Lin Ming <ming.m.lin@intel.com>
> Date: Thu, Dec 9, 2010 at 4:51 PM
> Subject: [PATCH 2/2] acpi: allow to add/remove multiple _OSI strings
> To: lenb <lenb@kernel.org>, Lukas Hejtmanek <xhejtman@ics.muni.cz>
> Cc: "Moore, Robert" <robert.moore@intel.com>, linux-acpi
> <linux-acpi@vger.kernel.org>
>
>
> commit b0ed7a91(ACPICA/ACPI: Add new host interfaces for _OSI suppor)
> introduced another regression that only one _OSI string can be added or
> removed.
>
> Now multiple _OSI strings can be added or removed, for example
>
> acpi_osi=Linux acpi_osi=FreeBSD acpi_osi="!Windows 2006"
>
> Signed-off-by: Lin Ming <ming.m.lin@intel.com>
> ---
> drivers/acpi/osl.c | 66 +++++++++++++++++++++++++++++++++++++++------------
> 1 files changed, 50 insertions(+), 16 deletions(-)
>
> diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
> index 6867443..d6e181a 100644
> --- a/drivers/acpi/osl.c
> +++ b/drivers/acpi/osl.c
> @@ -110,9 +110,6 @@ struct acpi_ioremap {
> static LIST_HEAD(acpi_ioremaps);
> static DEFINE_SPINLOCK(acpi_ioremap_lock);
>
> -#define OSI_STRING_LENGTH_MAX 64 /* arbitrary */
> -static char osi_setup_string[OSI_STRING_LENGTH_MAX];
> -
> static void __init acpi_osi_setup_late(void);
>
> /*
> @@ -1054,16 +1051,47 @@ static int __init acpi_os_name_setup(char *str)
>
> __setup("acpi_os_name=", acpi_os_name_setup);
>
> +#define OSI_STRING_LENGTH_MAX 64 /* arbitrary */
> +#define OSI_STRING_ENTRIES_MAX 16 /* arbitrary */
> +
> +struct osi_setup_entry {
> + char string[OSI_STRING_LENGTH_MAX];
> + bool enable;
> +};
> +
> +static struct osi_setup_entry osi_setup_entries[OSI_STRING_ENTRIES_MAX];
Len,
A small update, mark osi_setup_entries as __initdata.
Would you consider merging this for 2.6.37-rc6?
diff --git a/drivers/acpi/osl.c b/drivers/acpi/osl.c
index d6e181a..d0a1bb5 100644
--- a/drivers/acpi/osl.c
+++ b/drivers/acpi/osl.c
@@ -1059,7 +1059,7 @@ struct osi_setup_entry {
bool enable;
};
-static struct osi_setup_entry osi_setup_entries[OSI_STRING_ENTRIES_MAX];
+static struct osi_setup_entry __initdata osi_setup_entries[OSI_STRING_ENTRIES_MAX];
void __init acpi_osi_setup(char *str)
{
next prev parent reply other threads:[~2010-12-09 15:08 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-09 8:51 [PATCH 2/2] acpi: allow to add/remove multiple _OSI strings Lin Ming
[not found] ` <AANLkTi=fw9Hoo6=hgu4_VndoDzd_T4Mq4bV9tVSvPLft@mail.gmail.com>
2010-12-09 15:09 ` Lin Ming [this message]
2010-12-11 6:31 ` Len Brown
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1291907357.2181.4.camel@localhost \
--to=ming.m.lin@intel.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=robert.moore@intel.com \
--cc=xhejtman@ics.muni.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox