diff options
author | Suresh Warrier <warrier@linux.vnet.ibm.com> | 2016-08-19 08:35:55 +0300 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2016-09-12 03:12:23 +0300 |
commit | 366274f59c4de018f72ab44bb41ccaf3d657eb52 (patch) | |
tree | e4dae5bc867ae5d73a2e04dd16db9f66c3da5e68 /fs/tracefs | |
parent | 644abbb254b1ab171f777431b23e6fb5879599d0 (diff) | |
download | linux-366274f59c4de018f72ab44bb41ccaf3d657eb52.tar.xz |
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 'fs/tracefs')
0 files changed, 0 insertions, 0 deletions