x86, acpi_cpufreq: Fix the NULL pointer dereference in get_measured_perf