power_meter: introduce discharging member
measurement: report total global_time_left()

report total capacity and discahrge rate if at least one power_meter
reports that is's discharging. previously we reported only discharging
power_meters, thus user was not aware of total time left in case of
N batteries. this is the reason why power_meter discharging member
(with getter and setter one-liners were introduced) -- we need
capacity and rate for every power_meter, regardless the fact whether
its /sys/class/power_supply/*/status reports "Discharging" or not.
report total "The battery discharge rate" and "The estimated remaining
time" back to user when at least one power_meter is discharging.

Reported-and-tested-by: Maksim Melnikau <maxposedon@gmail.com>
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
power_supply: delete unused power_supply class

we use sysfs_power_meter or acpi_power_meter.

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
parameters: report correct "base power" parameter

Reported-by: Maksim Melnikau <maxposedon@gmail.com>
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
backlight: use process_directory() helper

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
backlight: decrease backlight() .ctor mem usage

Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Fixed cpu_core::has_c1_res initialization

cpu_core::has_c1_res is left uninitialized for anything other than BYT-M,
resulting in error at startup:
	 read_msr cpu0 0x660 : Argument list too long.

Signed-off-by: David Rosca <nowrep@gmail.com>