perf_counter: allow and require one-page mmap on counting counters
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 25 Mar 2009 11:48:31 +0000 (12:48 +0100)
committerIngo Molnar <mingo@elte.hu>
Mon, 6 Apr 2009 07:30:35 +0000 (09:30 +0200)
commit7730d8655880f41f2ea519aca2ca6a1413dfd2c9
tree2115b531fcc45d22f79828e21cc3f15dd95f01fd
parent00f0ad73ac90e3fba8b4cbe4cf21b2fb9a56cb72
perf_counter: allow and require one-page mmap on counting counters

A brainfart stopped single page mmap()s working. The rest of the code
should be perfectly fine with not having any data pages.

Reported-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Orig-LKML-Reference: <1237981712.7972.812.camel@twins>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_counter.c