summaryrefslogtreecommitdiffstats
path: root/linux-headers
diff options
context:
space:
mode:
authorPeter Maydell2017-09-05 19:55:40 +0200
committerPeter Maydell2017-09-05 19:55:40 +0200
commitb07d1c2f5607489d4d4a6a65ce36a3e896ac065e (patch)
tree42bb1bcea3c6b84e9d298a8de904fa3694676fbd /linux-headers
parentMerge remote-tracking branch 'remotes/gkurz/tags/for-upstream' into staging (diff)
downloadqemu-b07d1c2f5607489d4d4a6a65ce36a3e896ac065e.tar.gz
qemu-b07d1c2f5607489d4d4a6a65ce36a3e896ac065e.tar.xz
qemu-b07d1c2f5607489d4d4a6a65ce36a3e896ac065e.zip
Revert "kvm: use DIV_ROUND_UP"
This reverts commit 206a0fc75d5f54886c1b3f3a65782a75e36b6b97. The linux-headers directory is for kernel headers which we keep in sync with the upstream kernel via scripts/update-linux-headers.sh, so we shouldn't be applying our code cleanups to it. Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'linux-headers')
-rw-r--r--linux-headers/asm-x86/kvm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-headers/asm-x86/kvm.h b/linux-headers/asm-x86/kvm.h
index 1930b95bcb..c2824d02ba 100644
--- a/linux-headers/asm-x86/kvm.h
+++ b/linux-headers/asm-x86/kvm.h
@@ -153,7 +153,7 @@ struct kvm_sregs {
__u64 cr0, cr2, cr3, cr4, cr8;
__u64 efer;
__u64 apic_base;
- __u64 interrupt_bitmap[DIV_ROUND_UP(KVM_NR_INTERRUPTS, 64)];
+ __u64 interrupt_bitmap[(KVM_NR_INTERRUPTS + 63) / 64];
};
/* for KVM_GET_FPU and KVM_SET_FPU */