]> git.baikalelectronics.ru Git - kernel.git/commit
x86: relocate get/set debugreg fcns to include/asm/debugreg.
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 20 Jan 2012 21:24:09 +0000 (16:24 -0500)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 28 Feb 2012 22:48:04 +0000 (17:48 -0500)
commit107492d72d3b33d8551ad291f6be581d7c50dcac
tree5c5273e46c268a4cfe1cd7ba0ed9419142239ca1
parent5500df547ae74dc44ce24c6cbd2cb2d777795f4b
x86: relocate get/set debugreg fcns to include/asm/debugreg.

Since we already have a debugreg.h header file, move the
assoc. get/set functions to it.  In addition to it being the
logical home for them, it has a secondary advantage.  The
functions that are moved use BUG().  So we really need to
have linux/bug.h in scope.  But asm/processor.h is used about
600 times, vs. only about 15 for debugreg.h -- so adding bug.h
to the latter reduces the amount of time we'll be processing
it during a compile.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
CC: Thomas Gleixner <tglx@linutronix.de>
CC: "H. Peter Anvin" <hpa@zytor.com>
arch/x86/include/asm/debugreg.h
arch/x86/include/asm/processor.h
arch/x86/kernel/cpu/common.c