]> git.baikalelectronics.ru Git - kernel.git/commit
spinlock_up.h: include asm/processor.h in for cpu_relax
authorStephen Rothwell <sfr@canb.auug.org.au>
Fri, 20 May 2011 05:48:17 +0000 (15:48 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 May 2011 19:51:07 +0000 (12:51 -0700)
commit4a919a91dfc74fcb5e57547d617e940c70e481c9
tree7eed7674e9510a192cca1b6a25411e4893e16bc3
parent3c3bf57b8ecf82d8777e9d4564047ae58faf0be6
spinlock_up.h: include asm/processor.h in for cpu_relax

Commit 4f3ec9d1e882 ("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>
include/linux/spinlock_up.h