diff --git a/apix-pm-examples/README.md b/apix-pm-examples/README.md index bf571be..2301a33 100644 --- a/apix-pm-examples/README.md +++ b/apix-pm-examples/README.md @@ -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: diff --git a/apix-pm-examples/apix-cpu-sample.c b/apix-pm-examples/apix-cpu-sample.c index a332ea9..97c6351 100644 --- a/apix-pm-examples/apix-cpu-sample.c +++ b/apix-pm-examples/apix-cpu-sample.c @@ -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()); diff --git a/apix-pm-examples/apix-pm-sample.c b/apix-pm-examples/apix-pm-sample.c index 6352212..e2c1171 100644 --- a/apix-pm-examples/apix-pm-sample.c +++ b/apix-pm-examples/apix-pm-sample.c @@ -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