diff options
| author | Peter Zijlstra <[email protected]> | 2009-06-02 16:08:20 +0200 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2009-06-02 21:45:31 +0200 |
| commit | e4abb5d4f7ddabc1fc7c392cf0a10d8e5868c9ca (patch) | |
| tree | 9d9c71a70afd922d4b371b0243ab149456d634ca /scripts/patch-kernel | |
| parent | 8a016db386195b193e2a8aeddff9fe937dcb7a40 (diff) | |
perf_counter: x86: Emulate longer sample periods
Do as Power already does, emulate sample periods up to 2^63-1 by
composing them of smaller values limited by hardware capabilities.
Only once we wrap the software period do we generate an overflow
event.
Just 10 lines of new code.
Reported-by: Stephane Eranian <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Corey Ashford <[email protected]>
Cc: Marcelo Tosatti <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: John Kacur <[email protected]>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions