All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] perf, x86: Allow setting period 1
@ 2013-03-08 23:24 Andi Kleen
  2013-03-28 15:44 ` Andi Kleen
  2013-04-10 12:58 ` Ingo Molnar
  0 siblings, 2 replies; 5+ messages in thread
From: Andi Kleen @ 2013-03-08 23:24 UTC (permalink / raw)
  To: a.p.zijlstra; +Cc: mingo, linux-kernel, Andi Kleen

From: Andi Kleen <ak@linux.intel.com>

I had some requests for setting period 1, so that every event of something
is caught.  To my knowledge there is no limit to 1 on Intel hardware.
Just remove the check for minimum 2

If specific CPUs have problems we can black list them.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 arch/x86/kernel/cpu/perf_event.c |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/arch/x86/kernel/cpu/perf_event.c b/arch/x86/kernel/cpu/perf_event.c
index bf0f01a..2b394ae 100644
--- a/arch/x86/kernel/cpu/perf_event.c
+++ b/arch/x86/kernel/cpu/perf_event.c
@@ -946,11 +946,6 @@ int x86_perf_event_set_period(struct perf_event *event)
 		hwc->last_period = period;
 		ret = 1;
 	}
-	/*
-	 * Quirk: certain CPUs dont like it if just 1 hw_event is left:
-	 */
-	if (unlikely(left < 2))
-		left = 2;
 
 	if (left > x86_pmu.max_period)
 		left = x86_pmu.max_period;
-- 
1.7.7.6


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2013-04-15 11:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-08 23:24 [PATCH] perf, x86: Allow setting period 1 Andi Kleen
2013-03-28 15:44 ` Andi Kleen
2013-04-10 12:58 ` Ingo Molnar
2013-04-10 13:31   ` Andi Kleen
2013-04-15 11:26     ` Ingo Molnar

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.