summaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm
diff options
context:
space:
mode:
authorSuresh Warrier <warrier@linux.vnet.ibm.com>2016-08-19 15:35:55 +1000
committerPaul Mackerras <paulus@ozlabs.org>2016-09-12 10:12:23 +1000
commit366274f59c4de018f72ab44bb41ccaf3d657eb52 (patch)
treee4dae5bc867ae5d73a2e04dd16db9f66c3da5e68 /arch/powerpc/include/asm
parent644abbb254b1ab171f777431b23e6fb5879599d0 (diff)
downloadlwn-366274f59c4de018f72ab44bb41ccaf3d657eb52.tar.gz
lwn-366274f59c4de018f72ab44bb41ccaf3d657eb52.zip
KVM: PPC: Book3S HV: Update irq stats for IRQs handled in real mode
When a passthrough IRQ is handled completely within KVM real mode code, it has to also update the IRQ stats since this does not go through the generic IRQ handling code. However, the per CPU kstat_irqs field is an allocated (not static) field and so cannot be directly accessed in real mode safely. The function this_cpu_inc_rm() is introduced to safely increment per CPU fields (currently coded for unsigned integers only) that are allocated and could thus be vmalloced also. Signed-off-by: Suresh Warrier <warrier@linux.vnet.ibm.com> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Diffstat (limited to 'arch/powerpc/include/asm')
0 files changed, 0 insertions, 0 deletions