dect
/
linux-2.6
Archived
13
0
Fork 0

spinlock_up.h: include asm/processor.h in for cpu_relax

Commit e66eed651f ("list: remove prefetching from regular list
iterators") removed the include of prefetch.h from list.h and this was a
path to including asm/processor.h.  We need to include it excplicitly
now.

Fixes this build error on sparc32 (at least):

  In file included from include/linux/seqlock.h:29,
                   from include/linux/time.h:8,
                   from include/linux/timex.h:56,
                   from include/linux/sched.h:57,
                   from arch/sparc/kernel/asm-offsets.c:13:
  include/linux/spinlock.h: In function 'spin_unlock_wait':
  include/linux/spinlock.h:360: error: implicit declaration of function 'cpu_relax

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Stephen Rothwell 2011-05-20 15:48:17 +10:00 committed by Linus Torvalds
parent 268bb0ce3e
commit d974d905cb
1 changed files with 2 additions and 0 deletions

View File

@ -5,6 +5,8 @@
# error "please don't include this file directly"
#endif
#include <asm/processor.h> /* for cpu_relax() */
/*
* include/linux/spinlock_up.h - UP-debug version of spinlocks.
*