search for: xc_disable_turbo

Displaying 1 result from an estimated 1 matches for "xc_disable_turbo".

2012 Sep 14
1
[PATCH] xenpm: make argument parsing and error handling more consistent
...id = -1; + if ( argc > 0 ) + parse_cpuid(argv[0], &cpuid); if ( cpuid < 0 ) { @@ -1144,10 +1113,14 @@ void disable_turbo_mode(int argc, char * * only make effects on dbs governor */ int i; for ( i = 0; i < max_cpu_nr; i++ ) - xc_disable_turbo(xc_handle, i); + if ( xc_disable_turbo(xc_handle, i) ) + fprintf(stderr, + "[CPU%d] failed to disable turbo mode (%d - %s)\n", + i, errno, strerror(errno)); } - else - xc_disable_turbo(xc_handle, cpuid)...