Make lock profiling usable again
authorJuergen Gross <juergen.gross@ts.fujitsu.com>
Mon, 7 Nov 2011 14:36:44 +0000 (14:36 +0000)
committerJuergen Gross <juergen.gross@ts.fujitsu.com>
Mon, 7 Nov 2011 14:36:44 +0000 (14:36 +0000)
commitd98feda5c75658446f4ad28df3b6c855d9b5faa3
treee6419bf880d6742fd65cf8fecb23449112645bd4
parent4e3d89fbfa6e14e3ddce14b4da84adcb6f7ce0ea
Make lock profiling usable again

Using lock profiling (option lock_profile in xen/Rules.mk) resulted in
build errors.
Changes:
- Include public/sysctl.h in spinlock.h when using lock profiling.
- Allocate profile data in an own structure to avoid struct domain
  becoming larger then one page

Signed-off-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/common/spinlock.c
xen/include/xen/spinlock.h