Re: [patch] x86: clear TS in irq_ts_save() when in an atomicsection

From: Ingo Molnar
Date: Tue Jun 09 2009 - 10:23:20 EST



* Chuck Ebbert <cebbert@xxxxxxxxxx> wrote:

> - if (!in_interrupt())
> + if (!in_atomic() && !in_interrupt())
> return 0;

since in_interrupt() implies in_atomic() (upstream), why not just
do:

if (!in_atomic())
return 0;

?

Ingo
--
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/