lkml.org 
[lkml]   [2015]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] x86,fpu: use disable_task_lazy_fpu_restore helper
On 01/30/2015 09:49 AM, riel@redhat.com wrote:
> @@ -440,8 +440,9 @@ static inline fpu_switch_t switch_fpu_prepare(struct task_struct *old, struct ta
> new->thread.fpu_counter > 5);
> if (__thread_has_fpu(old)) {
> if (!__save_init_fpu(old))
> - cpu = ~0;
> - old->thread.fpu.last_cpu = cpu;
> + task_disable_lazy_fpu_restore(old);
> + else
> + old->thread.fpu.last_cpu = cpu;

What is the 'else' doing here? It seems a bit disconnected from the
other parts of the patch.


\
 
 \ /
  Last update: 2015-01-30 23:01    [W:0.374 / U:0.020 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site