Re: 2.6.24-rc1: OOPS at acpi_battery_update

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Johannes Weiner
Date: Thursday, November 8, 2007 - 9:46 am

Hi,

On Thu, Nov 08, 2007 at 07:11:53PM +0300, Alexey Starikovskiy wrote:

Please help me to understand:

When the battery is plugged in, the acpi_battery_notify() is called,
which in turn calls acpi_battery_update(). The latter ensures that the
sysfs files are created if not yet present.

When the battery is removed, acpi_battery_notify is called, which in
turn calls acpi_battery_update(). The latter ensures that the sysfs
files are removed if present.

During runtime - as far as I understood - no sysfs files have to be
created/removed but the saved battery state info becomes stale.

So, would it be enough to call acpi_battery_get_state() in
acpi_battery_get_property() instead of acpi_battery_update()?

If acpi_battery_get_state() does what I think it does, this would
ensure that the battery state is reread and updated when
acpi_battery_get_property() is called.

Hit me.

	Hannes
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
2.6.24-rc1: OOPS at acpi_battery_update, Romano Giannetti, (Mon Oct 29, 3:11 am)
Re: 2.6.24-rc1: OOPS at acpi_battery_update, Andrew Morton, (Thu Nov 1, 4:14 pm)
Re: 2.6.24-rc1: OOPS at acpi_battery_update, Rafael J. Wysocki, (Fri Nov 2, 9:08 am)
Re: *SPAM* Re: 2.6.24-rc1: OOPS at acpi_battery_update, Romano Giannetti, (Sun Nov 4, 2:34 am)
Re: *SPAM* Re: 2.6.24-rc1: OOPS at acpi_battery_update, Rafael J. Wysocki, (Sun Nov 4, 6:17 am)
Re: 2.6.24-rc1: OOPS at acpi_battery_update, Michael (rabenkind) ..., (Sun Nov 4, 4:29 pm)
Re: 2.6.24-rc1: OOPS at acpi_battery_update, Rafael J. Wysocki, (Sun Nov 4, 5:18 pm)
Re: 2.6.24-rc1: OOPS at acpi_battery_update, Johannes Weiner, (Thu Nov 8, 8:53 am)
Re: 2.6.24-rc1: OOPS at acpi_battery_update, Alexey Starikovskiy, (Thu Nov 8, 9:11 am)
Re: 2.6.24-rc1: OOPS at acpi_battery_update, Rafael J. Wysocki, (Thu Nov 8, 9:16 am)
Re: 2.6.24-rc1: OOPS at acpi_battery_update, Alexey Starikovskiy, (Thu Nov 8, 9:35 am)
Re: 2.6.24-rc1: OOPS at acpi_battery_update, Johannes Weiner, (Thu Nov 8, 9:46 am)
Re: 2.6.24-rc1: OOPS at acpi_battery_update, Johannes Weiner, (Thu Nov 8, 9:58 am)
Re: 2.6.24-rc1: OOPS at acpi_battery_update, Andrew Morton, (Thu Nov 8, 9:34 pm)
Re: 2.6.24-rc1: OOPS at acpi_battery_update, Alexey Starikovskiy, (Fri Nov 9, 2:36 am)
Re: 2.6.24-rc1: OOPS at acpi_battery_update, Andrew Morton, (Fri Nov 9, 2:49 am)
Re: 2.6.24-rc1: OOPS at acpi_battery_update, Alexey Starikovskiy, (Tue Nov 13, 1:35 am)
Re: 2.6.24-rc1: OOPS at acpi_battery_update, Andrew Morton, (Tue Nov 13, 1:59 am)