Re: [PATCH V2 1/1] X86: Hyper-V: Get the local APIC timer frequencyfrom the hypervisor

From: Olaf Hering
Date: Fri Sep 27 2013 - 11:33:00 EST


On Fri, Sep 27, KY Srinivasan wrote:

> > This leads to build errors on 32bit:
> >
> > linux-3.12-rc2/arch/x86/kernel/cpu/mshyperv.c:88: undefined reference to
> > `__udivdi3'
> >
> > Up to now I have only tested on 64bit, sorry for that.
>
> Thanks Olaf. I am travelling currently; I will fix it when I get back (early next week).

This change seems to fix it:

-+ hv_lapic_frequency /= HZ;
++ div_u64(hv_lapic_frequency, HZ);

Olaf
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/