mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Toshi Kani <toshi.kani@hp.com>
To: Joe Perches <joe@perches.com>, rjw@sisk.pl
Cc: linux-kernel@vger.kernel.org, lenb@kernel.org,
	linux-acpi@vger.kernel.org
Subject: Re: [PATCH v7 1/5] ACPI: Add acpi_handle_<level>() interfaces
Date: Tue, 20 Nov 2012 18:17:28 -0700	[thread overview]
Message-ID: <1353460648.10939.133.camel@misato.fc.hp.com> (raw)
In-Reply-To: <1353456074.17819.43.camel@joe-AO722>

On Tue, 2012-11-20 at 16:01 -0800, Joe Perches wrote:
> On Tue, 2012-11-20 at 16:42 -0700, Toshi Kani wrote:
> > This patch introduces acpi_handle_<level>(), where <level> is
> > a kernel message level such as err/warn/info, to support improved
> > logging messages for ACPI, esp. hot-plug operations.
> > acpi_handle_<level>() appends "ACPI" prefix and ACPI object path
> > to the messages.  This improves diagnosis of hotplug operations
> > since an error message in a log file identifies an object that
> > caused an issue.  This interface acquires the global namespace
> > mutex and is not suitable for interrupt context.
> 
> Old commit log? Maybe edit out the unsuitable for interrupt
> to "shows n/a in interrupt"?

Hi Joe,

I changed the descriptions from "may not be called from interrupt
context" to "is not suitable for interrupt context".  But, I agree with
you that it is clear to state how the interface behaves in interrupt
context.  So, I will update the description to the following:

"This interface acquires the global namespace mutex to obtain an object
path.  In interrupt context, it shows the object path as <n/a>."


Hi Rafael,

Instead of sending the whole series again, I will only send an updated
patch 1/5 since it only updates its descriptions.  The updated patch
will be labeled as "[PATCH v7-1 1/5]".


Thanks,
-Toshi



> diff --git a/drivers/acpi/utils.c b/drivers/acpi/utils.c
[]
> +
> +/**
> + * acpi_handle_printk: Print message with ACPI prefix and object path
> + *
> + * This function is called through acpi_handle_<level> macros and
prints
> + * a message with ACPI prefix and object path.  This function
acquires
> + * the global namespace mutex and is not suitable for interrupt
context.

Old text here too?

> diff --git a/include/linux/acpi.h b/include/linux/acpi.h
[]
> +/*
> + * acpi_handle_<level>: Print message with ACPI prefix and object
path
> + * 
> + * These interfaces acquire the global namespace mutex and are not
> + * suitable for interrupt context.

Here three?


  parent reply	other threads:[~2012-11-21  1:25 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-20 23:42 [PATCH v7 0/5] ACPI: hotplug messages improvement Toshi Kani
2012-11-20 23:42 ` [PATCH v7 1/5] ACPI: Add acpi_handle_<level>() interfaces Toshi Kani
     [not found]   ` <1353456074.17819.43.camel@joe-AO722>
2012-11-21  1:17     ` Toshi Kani [this message]
2012-11-20 23:42 ` [PATCH v7 2/5] ACPI: Update CPU hotplug error messages Toshi Kani
2012-11-20 23:42 ` [PATCH v7 3/5] ACPI: Update Memory " Toshi Kani
2012-11-20 23:42 ` [PATCH v7 4/5] ACPI: Update Container " Toshi Kani
2012-11-20 23:42 ` [PATCH v7 5/5] ACPI: Update Dock " Toshi Kani

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=1353460648.10939.133.camel@misato.fc.hp.com \
    --to=toshi.kani@hp.com \
    --cc=joe@perches.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rjw@sisk.pl \
    /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

all inboxes | Powered by JetHome®