• James Hogan's avatar
    MIPS: KVM: Fix preemption warning reading FPU capability · 556f2a52
    James Hogan authored
    Reading the KVM_CAP_MIPS_FPU capability returns cpu_has_fpu, however
    this uses smp_processor_id() to read the current CPU capabilities (since
    some old MIPS systems could have FPUs present on only a subset of CPUs).
    
    We don't support any such systems, so work around the warning by using
    raw_cpu_has_fpu instead.
    
    We should probably instead claim not to support FPU at all if any one
    CPU is lacking an FPU, but this should do for now.
    Signed-off-by: default avatarJames Hogan <james.hogan@imgtec.com>
    Cc: Ralf Baechle <ralf@linux-mips.org>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: "Radim KrčmáÅ" <rkrcmar@redhat.com>
    Cc: linux-mips@linux-mips.org
    Cc: kvm@vger.kernel.org
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    556f2a52
mips.c 40.5 KB