x86/mtrr: drop positive_have_wrcomb()
authorDoug Goldstein <cardoe@cardoe.com>
Thu, 19 Jan 2017 09:35:14 +0000 (10:35 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 19 Jan 2017 09:35:14 +0000 (10:35 +0100)
The only call to have_wrcomb() was always to the generic implementation.
positive_have_wrcomb() was unused.

Signed-off-by: Doug Goldstein <cardoe@cardoe.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/mtrr/generic.c
xen/arch/x86/cpu/mtrr/mtrr.h

index b7d329303b9ef94204eb95c6959796140c6f5221..8d4537aeb1ffc2a917f67f18db1d657463c54ba1 100644 (file)
@@ -557,11 +557,6 @@ static int generic_have_wrcomb(void)
        return (config & (1ULL << 10));
 }
 
-int positive_have_wrcomb(void)
-{
-       return 1;
-}
-
 /* generic structure...
  */
 const struct mtrr_ops generic_mtrr_ops = {
index 53d369d78f12079f33d53c49585784cf9b44a695..ec168f99616b07eb132f5fff87e83b390ac9a082 100644 (file)
@@ -31,8 +31,6 @@ extern int generic_validate_add_page(unsigned long base, unsigned long size,
 
 extern const struct mtrr_ops generic_mtrr_ops;
 
-extern int positive_have_wrcomb(void);
-
 /* library functions for processor-specific routines */
 struct set_mtrr_context {
        unsigned long flags;