perf_counter, x86: introduce max_period variable