Skip to content

Commit

Permalink
Revert "kvm: use DIV_ROUND_UP"
Browse files Browse the repository at this point in the history
This reverts commit 206a0fc.

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 <[email protected]>
  • Loading branch information
pm215 committed Sep 5, 2017
1 parent f5f3a7f commit b07d1c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion linux-headers/asm-x86/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit b07d1c2

Please sign in to comment.