Linux ACPI
 help / color / mirror / Atom feed
From: "Rafael J. Wysocki" <rjw@rjwysocki.net>
To: Hanjun Guo <hanjun.guo@linaro.org>
Cc: linux-acpi@vger.kernel.org, linaro-acpi@lists.linaro.org,
	Ashwin Chaugule <ashwin.chaugule@linaro.org>,
	Tomasz Nowicki <tomasz.nowicki@linaro.org>
Subject: Re: [PATCH 1/2] ACPI / table: Add new function to get table entries
Date: Wed, 03 Dec 2014 03:27:09 +0100	[thread overview]
Message-ID: <1992163.pcpyypd5QI@vostro.rjw.lan> (raw)
In-Reply-To: <1417069340.vUMviePmL9@vostro.rjw.lan>

On Thursday, November 27, 2014 01:54:37 AM Rafael J. Wysocki wrote:
> On Thursday, November 27, 2014 08:29:34 AM Hanjun Guo wrote:
> > On 2014-11-27 6:14, Rafael J. Wysocki wrote:
> > > On Wednesday, November 26, 2014 10:01:13 PM Hanjun Guo wrote:
> > >> From: Ashwin Chaugule <ashwin.chaugule@linaro.org>
> > >>
> > >> The acpi_table_parse() function has a callback that
> > >> passes a pointer to a table_header. Add a new function
> > >> which takes this pointer and parses its entries. This
> > >> eliminates the need to re-traverse all the tables for
> > >> each call. e.g. as in acpi_table_parse_madt() which is
> > >> normally called after acpi_table_parse().
> > >>
> > >> Acked-by: Grant Likely <grant.likely@linaro.org>
> > >> Signed-off-by: Ashwin Chaugule <ashwin.chaugule@linaro.org>
> > >> Signed-off-by: Tomasz Nowicki <tomasz.nowicki@linaro.org>
> > >> Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
> > >> ---
> > >>  drivers/acpi/tables.c | 63 +++++++++++++++++++++++++++++++++++----------------
> > >>  include/linux/acpi.h  |  4 ++++
> > >>  2 files changed, 48 insertions(+), 19 deletions(-)
> > >>
> > >> diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c
> > >> index 6d5a6cd..f1debe9 100644
> > >> --- a/drivers/acpi/tables.c
> > >> +++ b/drivers/acpi/tables.c
> > >> @@ -190,30 +190,24 @@ void acpi_table_print_madt_entry(struct acpi_subtable_header *header)
> > >>  	}
> > >>  }
> > >>  
> > >> -
> > >>  int __init
> > >> -acpi_table_parse_entries(char *id,
> > >> -			     unsigned long table_size,
> > >> -			     int entry_id,
> > >> -			     acpi_tbl_entry_handler handler,
> > >> -			     unsigned int max_entries)
> > >> +acpi_parse_entries(char *id, unsigned long table_size,
> > > 
> > > Why isn't this static?  Are you going to use it somewhere else?
> > 
> > Yes, we will use it in the following patches to parse
> > entries in static ACPI tables.
> 
> OK, thanks!

Both queued up for 3.19-rc1, thanks!

-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

      reply	other threads:[~2014-12-03  2:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-26 14:01 [PATCH 1/2] ACPI / table: Add new function to get table entries Hanjun Guo
2014-11-26 14:01 ` [PATCH 2/2] ACPI / table: Count matched and successfully parsed entries without specifying max entries Hanjun Guo
2014-11-26 22:14 ` [PATCH 1/2] ACPI / table: Add new function to get table entries Rafael J. Wysocki
2014-11-27  0:29   ` Hanjun Guo
2014-11-27  0:54     ` Rafael J. Wysocki
2014-12-03  2:27       ` Rafael J. Wysocki [this message]

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=1992163.pcpyypd5QI@vostro.rjw.lan \
    --to=rjw@rjwysocki.net \
    --cc=ashwin.chaugule@linaro.org \
    --cc=hanjun.guo@linaro.org \
    --cc=linaro-acpi@lists.linaro.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=tomasz.nowicki@linaro.org \
    /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