mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-15 21:23:23 +00:00
Blackfin arch: make sure cycles is marked as volatile so gcc doesnt reorder on us
Signed-off-by: Mike Frysinger <vapier.adi@gmail.com> Signed-off-by: Bryan Wu <cooloney@kernel.org>
This commit is contained in:
parent
ed061b7ac8
commit
1390da4ee7
@ -16,7 +16,7 @@ typedef unsigned long long cycles_t;
|
||||
static inline cycles_t get_cycles(void)
|
||||
{
|
||||
unsigned long tmp, tmp2;
|
||||
__asm__("%0 = cycles; %1 = cycles2;" : "=d"(tmp), "=d"(tmp2));
|
||||
__asm__ __volatile__("%0 = cycles; %1 = cycles2;" : "=d"(tmp), "=d"(tmp2));
|
||||
return tmp | ((cycles_t)tmp2 << 32);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user