Skip to content

Commit

Permalink
[POWERPC] Correct AC Power: in /proc/pmu/info on ibook1
Browse files Browse the repository at this point in the history
/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>
  • Loading branch information
Olaf Hering authored and Paul Mackerras committed Feb 13, 2007
1 parent 2d99c41 commit a334bdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/macintosh/via-pmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a334bdb

Please sign in to comment.