perf_counter, x86: introduce max_period variable
commitc619b8ffb1cec6a431687a35695dc6fd292a79e6
authorRobert Richter <robert.richter@amd.com>
Wed, 29 Apr 2009 10:47:23 +0000 (29 12:47 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 29 Apr 2009 12:51:13 +0000 (29 14:51 +0200)
tree5a4a05abe12d7df461f030571b7258e62ffed830
parent4b7bfd0d276da3a006d37e85d3cf900d7a14ae2a
perf_counter, x86: introduce max_period variable

In x86 pmus the allowed counter period to programm differs. This
introduces a max_period value and allows the generic implementation
for all models to check the max period.

[ Impact: generalize code ]

Signed-off-by: Robert Richter <robert.richter@amd.com>
Cc: Paul Mackerras <paulus@samba.org>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
LKML-Reference: <1241002046-8832-27-git-send-email-robert.richter@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c