[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Tue, 09 Sep 2014 16:40:35 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: andreas@...sler.com
Cc: sparclinux@...r.kernel.org, sam@...nborg.org,
linux-kernel@...r.kernel.org, software@...sler.com
Subject: Re: [PATCH] sparc: leon: Fix race condition between
leon_cycles_offset and timer_interrupt
From: Andreas Larsson <andreas@...sler.com>
Date: Fri, 29 Aug 2014 17:09:18 +0200
> This makes sure that leon_cycles_offset takes the pending bit into
> account and that leon_clear_clock_irq clears the pending bit. Otherwise,
> if leon_cycles_offset is executed after the timer has wrapped but before
> timer_interrupt has increased timer_cs_internal_counter, time can be
> perceived to go backwards.
>
> Signed-off-by: Andreas Larsson <andreas@...sler.com>
Applied.
--
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