aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/cyc_complexity_plugin.c
diff options
context:
space:
mode:
authorLeonardo Bras <[email protected]>2019-09-23 18:24:08 -0300
committerPaul Mackerras <[email protected]>2019-10-22 16:29:01 +1100
commitf41c4989c8de1fa70aafe950abaf80c56a8b8712 (patch)
treef6535e8d44d066062fb03495d7639c7ed100ffb4 /scripts/gcc-plugins/cyc_complexity_plugin.c
parent258ed7d02843052d127df2264c8b342276ced18a (diff)
KVM: PPC: E500: Replace current->mm by kvm->mm
Given that in kvm_create_vm() there is: kvm->mm = current->mm; And that on every kvm_*_ioctl we have: if (kvm->mm != current->mm) return -EIO; I see no reason to keep using current->mm instead of kvm->mm. By doing so, we would reduce the use of 'global' variables on code, relying more in the contents of kvm struct. Signed-off-by: Leonardo Bras <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/cyc_complexity_plugin.c')
0 files changed, 0 insertions, 0 deletions