pm_example: fix compilation error
Signed-off-by: Francisco Gil <francisco.gilmartinez@digi.com>
This commit is contained in:
parent
e32bbc12bf
commit
34f2c9d305
|
|
@ -1,12 +1,9 @@
|
|||
Digi APIX Power Management example Applications
|
||||
===============================================
|
||||
|
||||
Example applications to access and manage CPU functions using the Digi APIX library.
|
||||
|
||||
These applications show how to work with different functions and provide different
|
||||
examples to work with the CPU.
|
||||
|
||||
Running the apix-cpu-example application
|
||||
Example applications that use the Digi APIX library to access and manage
|
||||
power-management related features of the CPU, such as temperature thresholds,
|
||||
frequencies, and governors.
|
||||
-----------------------
|
||||
Once the binary is in the target, launch the application:
|
||||
|
||||
|
|
|
|||
|
|
@ -65,7 +65,6 @@ static void list_available_governors()
|
|||
|
||||
printf("These are the governors available:\n");
|
||||
for (i = 0; i < MAX_GOVERNORS; i++) {
|
||||
for (i = 0; i < GOVERNOR_SIZE; i++) {
|
||||
if (ldx_cpu_is_governor_available(i) == EXIT_SUCCESS)
|
||||
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;
|
||||
case 'g':
|
||||
list_available_governors();
|
||||
ret = EXIT_SUCCESS;
|
||||
break;
|
||||
case 'v':
|
||||
governor = ldx_cpu_get_governor_string_from_type(ldx_cpu_get_governor());
|
||||
|
|
|
|||
|
|
@ -86,7 +86,6 @@ static int verify_temperature_reduction()
|
|||
* @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 its value if
|
||||
* the gpu value is enabled.
|
||||
*
|
||||
* This function reduces the CPU frequency to the minimum if the cpu value
|
||||
|
|
|
|||
Loading…
Reference in New Issue