Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[POWERPC] Correct AC Power: in /proc/pmu/info on ibook1

/proc/pmu/info contains AC Power: 0 when booting without battery.
Force AC Power, it will be updated whenever the battery state changes.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Signed-off-by: Paul Mackerras <paulus@samba.org>

authored by

Olaf Hering and committed by
Paul Mackerras
a334bdbd 2d99c41f

+1 -1
+1 -1
drivers/macintosh/via-pmu.c
··· 169 169 170 170 int pmu_battery_count; 171 171 int pmu_cur_battery; 172 - unsigned int pmu_power_flags; 172 + unsigned int pmu_power_flags = PMU_PWR_AC_PRESENT; 173 173 struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES]; 174 174 static int query_batt_timer = BATTERY_POLLING_COUNT; 175 175 static struct adb_request batt_req;