[lkml]   [2009]   [Sep]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [tip:sched/urgent] x86: Provide an alternative() based cmpxchg64()

* tip-bot for Arjan van de Ven <> wrote:

> Commit-ID: e87aaa7b6d80474ec07a2d2be3f50ef574ffe36c
> Gitweb:
> Author: Arjan van de Ven <>
> AuthorDate: Wed, 30 Sep 2009 17:07:54 +0200
> Committer: Ingo Molnar <>
> CommitDate: Wed, 30 Sep 2009 22:35:44 +0200
> x86: Provide an alternative() based cmpxchg64()
> cmpxchg64() today generates, to quote Linus, "barf bag" code.
> cmpxchg64() is about to get used in the scheduler to a bug there,
> but it's a prerequisite that cmpxchg64() first be made non-sucking.
> This patch turns cmpxchg64() into an efficient implementation that
> uses the alternative() mechanism to just use the raw instruction on
> all modern systens

The changelog above has 3 typos so i fixed that. The push will generate
the hopefully-final version of these patches.

Note, i slightly updated Linus's version of the old-CPU emu code with
Eric's micro-optimization.


 \ /
  Last update: 2009-09-30 23:01    [W:0.175 / U:0.348 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site