int cpufreq_has_x86_boost_support(unsignedint cpu, int *support, int *active, int *states)
{ int ret; unsignedlonglong val;
*support = *active = *states = 0;
if (cpupower_cpu_info.caps & CPUPOWER_CAP_AMD_CPB) {
*support = 1;
/* AMD Family 0x17 does not utilize PCI D18F4 like prior * families and has no fixed discrete boost states but * has Hardware determined variable increments instead.
*/
for (cpu = bitmask_first(cpus_chosen);
cpu <= bitmask_last(cpus_chosen); cpu++) {
if (cpupower_is_cpu_online(cpu) == 1)
bitmask_setbit(online_cpus, cpu); else
bitmask_setbit(offline_cpus, cpu);
continue;
}
}
/* print_online_cpus * * Print the CPU numbers of all CPUs that are online currently
*/ void print_online_cpus(void)
{ int str_len = 0; char *online_cpus_str = NULL;
if (!bitmask_isallclear(online_cpus)) {
bitmask_displaylist(online_cpus_str, str_len, online_cpus);
printf(_("Following CPUs are online:\n%s\n"), online_cpus_str);
}
}
/* print_offline_cpus * * Print the CPU numbers of all CPUs that are offline currently
*/ void print_offline_cpus(void)
{ int str_len = 0; char *offline_cpus_str = NULL;
if (!bitmask_isallclear(offline_cpus)) {
bitmask_displaylist(offline_cpus_str, str_len, offline_cpus);
printf(_("Following CPUs are offline:\n%s\n"), offline_cpus_str);
printf(_("cpupower set operation was not performed on them\n"));
}
}
/* * print_speed * * Print the exact CPU frequency with appropriate unit
*/ void print_speed(unsignedlong speed, int no_rounding)
{ unsignedlong tmp;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.