Модель драйвера
[pfemidi@pfemidi ~]$ cat /proc/cpuinfo | grep "model name"
model name : Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
model name : Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
model name : Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
model name : Intel(R) Core(TM) i5-3570 CPU @ 3.40GHz
[pfemidi@pfemidi ~]$ cpupower frequency-info
analyzing CPU 0:
driver: intel_cpufreq
CPUs which run at the same hardware frequency: 0
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 20.0 us
hardware limits: 1.60 GHz - 3.80 GHz
available cpufreq governors: conservative ondemand userspace powersave performance schedutil
current policy: frequency should be within 1.60 GHz and 3.80 GHz.
The governor "ondemand" may decide which speed to use
within this range.
current CPU frequency: Unable to call hardware
current CPU frequency: 2.17 GHz (asserted by call to kernel)
boost state support:
Supported: yes
Active: yes
25500 MHz max turbo 4 active cores
25500 MHz max turbo 3 active cores
25500 MHz max turbo 2 active cores
25500 MHz max turbo 1 active cores
[pfemidi@pfemidi ~]$
Возможно у тебя старый драйвер
[pfemidi@pfemidi ~]$ uname -a
Linux pfemidi 5.12.9-300.fc34.x86_64 #1 SMP Thu Jun 3 13:51:40 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
[pfemidi@pfemidi ~]$ cat /etc/redhat-release
Fedora release 34 (Thirty Four)
[pfemidi@pfemidi ~]$ cat /proc/cpuinfo | grep vendor
vendor_id : GenuineIntel
vendor_id : GenuineIntel
vendor_id : GenuineIntel
vendor_id : GenuineIntel
[pfemidi@pfemidi ~]$ sudo cpupower frequency-set -g ondemand
Setting cpu: 0
Setting cpu: 1
Setting cpu: 2
Setting cpu: 3
[pfemidi@pfemidi ~]$
switch(some)
{
if (some == other)
doOther();
case 1:
doCaseOne();
break;
default:
doDefault();
break;
}
switch(some)
{
case 1:
doCaseOne();
break;
default:
if (some == other)
doOther();
doDefault();
break;
}
У вас программа не работает, тк вместо << у вас французские кавычки.