pm_example: fix compilation error

Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
This commit is contained in:
Francisco Gil 2019-09-04 14:06:15 +02:00
parent e32bbc12bf
commit 34f2c9d305
3 changed files with 4 additions and 8 deletions

View File

@ -1,12 +1,9 @@
Digi APIX Power Management example Applications Digi APIX Power Management example Applications
=============================================== ===============================================
Example applications to access and manage CPU functions using the Digi APIX library. Example applications that use the Digi APIX library to access and manage
power-management related features of the CPU, such as temperature thresholds,
These applications show how to work with different functions and provide different frequencies, and governors.
examples to work with the CPU.
Running the apix-cpu-example application
----------------------- -----------------------
Once the binary is in the target, launch the application: Once the binary is in the target, launch the application:

View File

@ -65,7 +65,6 @@ static void list_available_governors()
printf("These are the governors available:\n"); printf("These are the governors available:\n");
for (i = 0; i < MAX_GOVERNORS; i++) { for (i = 0; i < MAX_GOVERNORS; i++) {
for (i = 0; i < GOVERNOR_SIZE; i++) {
if (ldx_cpu_is_governor_available(i) == EXIT_SUCCESS) if (ldx_cpu_is_governor_available(i) == EXIT_SUCCESS)
printf("\t\t\t%s\n", ldx_cpu_get_governor_string_from_type(i)); printf("\t\t\t%s\n", ldx_cpu_get_governor_string_from_type(i));
} }
@ -123,6 +122,7 @@ int main(int argc, char *argv[])
break; break;
case 'g': case 'g':
list_available_governors(); list_available_governors();
ret = EXIT_SUCCESS;
break; break;
case 'v': case 'v':
governor = ldx_cpu_get_governor_string_from_type(ldx_cpu_get_governor()); governor = ldx_cpu_get_governor_string_from_type(ldx_cpu_get_governor());

View File

@ -86,7 +86,6 @@ static int verify_temperature_reduction()
* @cpu: 1 to enable the cpu counter measurements. * @cpu: 1 to enable the cpu counter measurements.
* *
* This function reduces the GPU multiplier to half of its value if * This function reduces the GPU multiplier to half of its value if
* This function reduces the GPU multiplier to half its value if
* the gpu value is enabled. * the gpu value is enabled.
* *
* This function reduces the CPU frequency to the minimum if the cpu value * This function reduces the CPU frequency to the minimum if the cpu value