diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-10 19:04:38 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-10 19:04:38 -0400 |
commit | a9642fa351c9dbf930ad2b5a1c17f3cfe2f62820 (patch) | |
tree | 41a587b1ce1ec65bf4dd2e24afe2fc6d73f4b682 | |
parent | 8133633368760656c76b8302dbd4bfa20f887df6 (diff) | |
parent | e5302920da9ef23f9d19d4e9ac85704cc25bee7a (diff) |
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
-rw-r--r-- | arch/x86/kernel/cpu/perf_event_amd_iommu.c | 4 | ||||
-rw-r--r-- | kernel/events/core.c | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/arch/x86/kernel/cpu/perf_event_amd_iommu.c b/arch/x86/kernel/cpu/perf_event_amd_iommu.c index 0db655ef3918..639d1289b1ba 100644 --- a/arch/x86/kernel/cpu/perf_event_amd_iommu.c +++ b/arch/x86/kernel/cpu/perf_event_amd_iommu.c | |||
@@ -491,10 +491,8 @@ static struct perf_amd_iommu __perf_iommu = { | |||
491 | static __init int amd_iommu_pc_init(void) | 491 | static __init int amd_iommu_pc_init(void) |
492 | { | 492 | { |
493 | /* Make sure the IOMMU PC resource is available */ | 493 | /* Make sure the IOMMU PC resource is available */ |
494 | if (!amd_iommu_pc_supported()) { | 494 | if (!amd_iommu_pc_supported()) |
495 | pr_err("perf: amd_iommu PMU not installed. No support!\n"); | ||
496 | return -ENODEV; | 495 | return -ENODEV; |
497 | } | ||
498 | 496 | ||
499 | _init_perf_amd_iommu(&__perf_iommu, "amd_iommu"); | 497 | _init_perf_amd_iommu(&__perf_iommu, "amd_iommu"); |
500 | 498 | ||
diff --git a/kernel/events/core.c b/kernel/events/core.c index 1db3af933704..1833bc5a84a7 100644 --- a/kernel/events/core.c +++ b/kernel/events/core.c | |||
@@ -182,7 +182,7 @@ void update_perf_cpu_limits(void) | |||
182 | u64 tmp = perf_sample_period_ns; | 182 | u64 tmp = perf_sample_period_ns; |
183 | 183 | ||
184 | tmp *= sysctl_perf_cpu_time_max_percent; | 184 | tmp *= sysctl_perf_cpu_time_max_percent; |
185 | tmp = do_div(tmp, 100); | 185 | do_div(tmp, 100); |
186 | atomic_set(&perf_sample_allowed_ns, tmp); | 186 | atomic_set(&perf_sample_allowed_ns, tmp); |
187 | } | 187 | } |
188 | 188 | ||
@@ -232,7 +232,7 @@ DEFINE_PER_CPU(u64, running_sample_length); | |||
232 | void perf_sample_event_took(u64 sample_len_ns) | 232 | void perf_sample_event_took(u64 sample_len_ns) |
233 | { | 233 | { |
234 | u64 avg_local_sample_len; | 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 | if (atomic_read(&perf_sample_allowed_ns) == 0) | 237 | if (atomic_read(&perf_sample_allowed_ns) == 0) |
238 | return; | 238 | return; |