Skip to content

Commit a9642fa

Browse files
committed
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
2 parents 8133633 + e530292 commit a9642fa

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

‎arch/x86/kernel/cpu/perf_event_amd_iommu.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -491,10 +491,8 @@ static struct perf_amd_iommu __perf_iommu = {
491491
static __init int amd_iommu_pc_init(void)
492492
{
493493
/* 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())
496495
return -ENODEV;
497-
}
498496

499497
_init_perf_amd_iommu(&__perf_iommu, "amd_iommu");
500498

‎kernel/events/core.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ void update_perf_cpu_limits(void)
182182
u64 tmp = perf_sample_period_ns;
183183

184184
tmp *= sysctl_perf_cpu_time_max_percent;
185-
tmp = do_div(tmp, 100);
185+
do_div(tmp, 100);
186186
atomic_set(&perf_sample_allowed_ns, tmp);
187187
}
188188

@@ -232,7 +232,7 @@ DEFINE_PER_CPU(u64, running_sample_length);
232232
void perf_sample_event_took(u64 sample_len_ns)
233233
{
234234
u64 avg_local_sample_len;
235-
u64 local_samples_len = __get_cpu_var(running_sample_length);
235+
u64 local_samples_len;
236236

237237
if (atomic_read(&perf_sample_allowed_ns) == 0)
238238
return;

0 commit comments

Comments
 (0)