[PATCH 2/3 v3] powerpc: Allow perf_counters to access user memory at interrupt time
Benjamin Herrenschmidt
benh at kernel.crashing.org
Tue Aug 18 14:24:40 EST 2009
On Tue, 2009-08-18 at 09:00 +1000, Paul Mackerras wrote:
> This provides a mechanism to allow the perf_counters code to access
> user memory in a PMU interrupt routine. Such an access can cause
> various kinds of interrupt: SLB miss, MMU hash table miss, segment
> table miss, or TLB miss, depending on the processor. This commit
> only deals with 64-bit classic/server processors, which use an MMU
> hash table. 32-bit processors are already able to access user memory
> at interrupt time. Since we don't soft-disable on 32-bit, we avoid
> the possibility of reentering hash_page or the TLB miss handlers,
> since they run with interrupts disabled.
.../...
>
> Signed-off-by: Paul Mackerras <paulus at samba.org>
Acked-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>
More information about the Linuxppc-dev
mailing list