Re: (*(unsigned long *)&jiffies)++;

From: Tigran Aivazian (tigran@sco.COM)
Date: Thu Jan 06 2000 - 11:32:17 EST


On Thu, 6 Jan 2000, Richard B. Johnson wrote:
> If it is essential that instructions be ordered in a specific way,
> then a platform-specific macro should have been defined using the
> necessary assembly language.

what's wrong with using existing atomic_XXX() macros? They are explicitly
__volatile__ and use incl without performance penalty on UP (because LOCK
is nop on UP and lock prefix on SMP).

Just an idea.

Tigran.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jan 07 2000 - 21:00:06 EST