Skip to content

Commit

Permalink
x86, cmpxchg: <linux/alternative.h> has LOCK_PREFIX
Browse files Browse the repository at this point in the history
Not <linux/bitops.h>.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Link: http://lkml.kernel.org/r/4E5BCC40.3030501@goop.org
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
  • Loading branch information
Jeremy Fitzhardinge authored and H. Peter Anvin committed Aug 29, 2011
1 parent c6a389f commit 4009338
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/include/asm/cmpxchg_32.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef _ASM_X86_CMPXCHG_32_H
#define _ASM_X86_CMPXCHG_32_H

#include <linux/bitops.h> /* for LOCK_PREFIX */
#include <asm/alternative.h> /* Provides LOCK_PREFIX */

/*
* Note: if you use set64_bit(), __cmpxchg64(), or their variants, you
Expand Down

0 comments on commit 4009338

Please sign in to comment.