• David Gibson's avatar
    [PATCH] ppc64: add performance monitor register information to processor.h · c6744c49
    David Gibson authored
    Most special purpose registers on the ppc64 have both the SPR number, and
    the various fields within the register defined in asm-ppc64/processor.h.
    So far that's not true for the performance counter control registers, MMCR0
    and MMCRA.  They have the SPR numbers defined, but the internal fields are
    defined in the oprofile code and (just a few) in traps.c where they're
    actually used.
    
    This patch moves all the MMCR0 and MMCRA definitions, plus the MSR
    performance monitor bit, MSR_PMM, into processor.h.
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    c6744c49
traps.c 15.8 KB