[POWERPC] Correct AC Power: in /proc/pmu/info on ibook1
authorOlaf Hering <olaf@aepfle.de>
Sat, 10 Feb 2007 20:40:00 +0000 (21:40 +0100)
committerPaul Mackerras <paulus@samba.org>
Tue, 13 Feb 2007 04:35:52 +0000 (15:35 +1100)
/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>
drivers/macintosh/via-pmu.c

index 8794cabae895ec87230b800bfff14390e9466673..b6073bdb50c36a73b73e6851ebe6ba2f414801fb 100644 (file)
@@ -169,7 +169,7 @@ static int option_server_mode;
 
 int pmu_battery_count;
 int pmu_cur_battery;
-unsigned int pmu_power_flags;
+unsigned int pmu_power_flags = PMU_PWR_AC_PRESENT;
 struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES];
 static int query_batt_timer = BATTERY_POLLING_COUNT;
 static struct adb_request batt_req;