All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hanjun Guo <hanjun.guo@linaro.org>
To: "Rafael J. Wysocki" <rjw@rjwysocki.net>
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: Thu, 27 Nov 2014 08:29:34 +0800	[thread overview]
Message-ID: <5476706E.7080906@linaro.org> (raw)
In-Reply-To: <3690114.UPTfuA83uf@vostro.rjw.lan>

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.

Thanks
Hanjun

  reply	other threads:[~2014-11-27  0:31 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 [this message]
2014-11-27  0:54     ` Rafael J. Wysocki
2014-12-03  2:27       ` Rafael J. Wysocki

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=5476706E.7080906@linaro.org \
    --to=hanjun.guo@linaro.org \
    --cc=ashwin.chaugule@linaro.org \
    --cc=linaro-acpi@lists.linaro.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=rjw@rjwysocki.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.