All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lan Tianyu <tianyu.lan@intel.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: rjw@rjwysocki.net, lenb@kernel.org, linux-acpi@vger.kernel.org,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ACPI/Battery: Accelerate battery resume callback
Date: Fri, 09 May 2014 15:43:57 +0800	[thread overview]
Message-ID: <536C873D.8030405@intel.com> (raw)
In-Reply-To: <20140509073827.GA4965@xo-6d-61-c0.localdomain>

On 2014年05月09日 15:38, Pavel Machek wrote:
> Hi!
> 
>> Most time of battery resume callback is spent on executing AML code
>> _BTP, _BIF and _BIF to get battery info, status and set alarm. These
>> AML methods may access EC operation regions several times and consumes
>> time.
>>
>> These operations are not necessary during devices resume and can run
>> during POST_SUSPEND/HIBERNATION event when all processes are thawed.
> 
> Does it mean that userspace will see pre-hibernation battery level for a while 
> after resume?

Hi Pavel:
	Thanks for your review. No, when user access the battery sysfs
interface, driver will read battery info and return new data.

> 
> 									Pavel
> 


-- 
Best regards
Tianyu Lan

  reply	other threads:[~2014-05-09  7:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-04  6:07 [PATCH] ACPI/Battery: Accelerate battery resume callback Lan Tianyu
2014-05-09  7:38 ` Pavel Machek
2014-05-09  7:43   ` Lan Tianyu [this message]
2014-05-19 22:54 ` 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=536C873D.8030405@intel.com \
    --to=tianyu.lan@intel.com \
    --cc=lenb@kernel.org \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    --cc=rjw@rjwysocki.net \
    /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.