[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <54CBFBC7.7060304@linux.intel.com>
Date: Fri, 30 Jan 2015 13:46:47 -0800
From: Dave Hansen <dave.hansen@...ux.intel.com>
To: riel@...hat.com, oleg@...hat.com
CC: sbsiddha@...il.com, luto@...capital.net, tglx@...utronix.de,
mingo@...hat.com, hpa@...or.com, fenghua.yu@...el.com,
x86@...nel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH 3/3] x86,fpu: use disable_task_lazy_fpu_restore helper
On 01/30/2015 09:49 AM, riel@...hat.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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists