Skip to content

Instantly share code, notes, and snippets.

@phire
Created May 20, 2012 10:31
Show Gist options
  • Save phire/2757608 to your computer and use it in GitHub Desktop.
Save phire/2757608 to your computer and use it in GitHub Desktop.
conditional/unconditional jump weirdness
phire@Osiris:~/projects/funwithtemplates$ cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0 1
CPUs which need to have their frequency coordinated by software: 0
maximum transition latency: 10.0 us.
hardware limits: 800 MHz - 1.30 GHz
available frequency steps: 1.30 GHz, 1.20 GHz, 800 MHz
available cpufreq governors: ondemand, performance
current policy: frequency should be within 800 MHz and 1.30 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 1.30 GHz.
analyzing CPU 1:
driver: acpi-cpufreq
CPUs which run at the same hardware frequency: 0 1
CPUs which need to have their frequency coordinated by software: 1
maximum transition latency: 10.0 us.
hardware limits: 800 MHz - 1.30 GHz
available frequency steps: 1.30 GHz, 1.20 GHz, 800 MHz
available cpufreq governors: ondemand, performance
current policy: frequency should be within 800 MHz and 1.30 GHz.
The governor "performance" may decide which speed to use
within this range.
current CPU frequency is 1.30 GHz.
phire@Osiris:~/projects/funwithtemplates$ time ./conditional
real 0m17.992s
user 0m17.819s
sys 0m0.113s
phire@Osiris:~/projects/funwithtemplates$ time ./unconditional
real 0m23.526s
user 0m23.515s
sys 0m0.000s
phire@Osiris:~/projects/funwithtemplates$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment