Commit a334bdbd authored by Olaf Hering's avatar Olaf Hering Committed by Paul Mackerras

[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: default avatarOlaf Hering <olaf@aepfle.de>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 2d99c41f
...@@ -169,7 +169,7 @@ static int option_server_mode; ...@@ -169,7 +169,7 @@ static int option_server_mode;
int pmu_battery_count; int pmu_battery_count;
int pmu_cur_battery; 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]; struct pmu_battery_info pmu_batteries[PMU_MAX_BATTERIES];
static int query_batt_timer = BATTERY_POLLING_COUNT; static int query_batt_timer = BATTERY_POLLING_COUNT;
static struct adb_request batt_req; static struct adb_request batt_req;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment