]> rtime.felk.cvut.cz Git - frescor/frsh.git/commit
Added speed reading functions.
authorDario Faggioli <faggioli@gandalf.sssup.it>
Wed, 13 May 2009 09:58:22 +0000 (11:58 +0200)
committerDario Faggioli <faggioli@gandalf.sssup.it>
Wed, 13 May 2009 09:58:22 +0000 (11:58 +0200)
commitc5093cb9e0299986422a746a5896dfba8bedded7
tree7220071e86565690d7801fbcde89460bd8d75c0e
parentda4e3dbfcf8342385c4b366212a4614e7f52d2a3
Added speed reading functions.

frsh_resource_get_speed() function (and their implementations for CPU and
LCD) are added by this commit.
They can be used to retreive the ratio between the speed of a power level
and the maximum achievable speed for that resource.

Test cases are added and updated accordingly.
frsh_api/frsh_contract.c
frsh_api/frsh_power.c
resources/acpi_battery/tests/acpi_battery_test.c
resources/acpi_cpu/fra_acpi_cpu.c
resources/acpi_cpu/fra_acpi_cpu.h
resources/acpi_cpu/tests/acpi_cpu_test.c
resources/acpi_lcd/fra_acpi_lcd.c
resources/acpi_lcd/fra_acpi_lcd.h
resources/acpi_lcd/tests/acpi_lcd_test.c