]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC 339899: Make battery emptying rate available as sysctl variable.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 3 Jan 2019 01:39:22 +0000 (01:39 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Thu, 3 Jan 2019 01:39:22 +0000 (01:39 +0000)
commite692d11a653aaa82f756cad2cbdbeef3dc92ee43
tree138ef2ef390af29327154aae021f47ae8f9bccf1
parentf275eeaca38f52814825b336416f58dfbf89dd02
MFC 339899: Make battery emptying rate available as sysctl variable.

Curiously, the in-kernel routines always use the design voltage to
convert from mA to mW, but acpiconf in userland uses the current
voltage.  As a result, this can report a different mW rate than
acpiconf.
sys/dev/acpica/acpi_battery.c