19 #include <linux/kernel.h>
20 #include <linux/module.h>
22 #include <linux/adb.h>
23 #include <linux/pmu.h>
25 #define APM_CRITICAL 10
38 unsigned long btype = 0;
73 time_units = (charge * 59) / (amperage * -1);
75 time_units = (charge * 16440) / (amperage * -60);
77 percentage /= real_count;
84 }
else if (percentage <=
APM_LOW) {
94 info->
time = time_units;
97 static int __init apm_emu_init(
void)
106 static void __exit apm_emu_exit(
void)