Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Merge branch 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull perf fixes from Ingo Molnar:
"Two small fixlets"

* 'perf-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
perf: Fix interrupt handler timing harness
perf/x86/amd: Do not print an error when the device is not present

+3 -5
+1 -3
arch/x86/kernel/cpu/perf_event_amd_iommu.c
··· 491 491 static __init int amd_iommu_pc_init(void) 492 492 { 493 493 /* Make sure the IOMMU PC resource is available */ 494 - if (!amd_iommu_pc_supported()) { 495 - pr_err("perf: amd_iommu PMU not installed. No support!\n"); 494 + if (!amd_iommu_pc_supported()) 496 495 return -ENODEV; 497 - } 498 496 499 497 _init_perf_amd_iommu(&__perf_iommu, "amd_iommu"); 500 498
+2 -2
kernel/events/core.c
··· 182 182 u64 tmp = perf_sample_period_ns; 183 183 184 184 tmp *= sysctl_perf_cpu_time_max_percent; 185 - tmp = do_div(tmp, 100); 185 + do_div(tmp, 100); 186 186 atomic_set(&perf_sample_allowed_ns, tmp); 187 187 } 188 188 ··· 232 232 void perf_sample_event_took(u64 sample_len_ns) 233 233 { 234 234 u64 avg_local_sample_len; 235 - u64 local_samples_len = __get_cpu_var(running_sample_length); 235 + u64 local_samples_len; 236 236 237 237 if (atomic_read(&perf_sample_allowed_ns) == 0) 238 238 return;