Re: [PATCH V3 1/2] MIPS: Loongson-3: Enable COP2 usage in kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Aug 28, 2020 at 05:52:05PM +0800, Huacai Chen wrote:
> Hi, Thomas,
> 
> On Fri, Aug 28, 2020 at 5:34 PM Thomas Bogendoerfer
> <tsbogend@xxxxxxxxxxxxxxxx> wrote:
> > if it is enabled at that point, it was already enabled in kernel.
> In kernel FPU may be enabled temporarily, and it seems a preemptible
> kernel may enable FPU for a new process (maybe I'm wrong, this is a
> bit complex).

no you are completly right. We need to clear CU1 in this place otherwise
a orphan cpu warning will trigger. It's enabled, if the current thread owns
it, but the newly created thread doesn't.

Thomas.

-- 
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea.                                                [ RFC1925, 2.3 ]



[Index of Archives]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux