Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 88899
b: refs/heads/master
c: 52783fa
h: refs/heads/master
i:
  88897: 927abf2
  88895: af39578
v: v3
  • Loading branch information
Ingo Molnar committed Apr 17, 2008
1 parent c811271 commit cd5c70b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 042b78e4dbb8919a59e77ba5d502a5a14405dea1
refs/heads/master: 52783fa8d6b847857fdd86df418e09c026d816f5
10 changes: 8 additions & 2 deletions trunk/include/asm-x86/mtrr.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,9 @@ struct mtrr_gentry

#ifdef __KERNEL__

extern u8 mtrr_type_lookup(u64 addr, u64 end);

/* The following functions are for use by other drivers */
# ifdef CONFIG_MTRR
extern u8 mtrr_type_lookup(u64 addr, u64 end);
extern void mtrr_save_fixed_ranges(void *);
extern void mtrr_save_state(void);
extern int mtrr_add (unsigned long base, unsigned long size,
Expand All @@ -101,6 +100,13 @@ extern void mtrr_ap_init(void);
extern void mtrr_bp_init(void);
extern int mtrr_trim_uncached_memory(unsigned long end_pfn);
# else
static inline u8 mtrr_type_lookup(u64 addr, u64 end)
{
/*
* Return no-MTRRs:
*/
return 0xff;
}
#define mtrr_save_fixed_ranges(arg) do {} while (0)
#define mtrr_save_state() do {} while (0)
static __inline__ int mtrr_add (unsigned long base, unsigned long size,
Expand Down

0 comments on commit cd5c70b

Please sign in to comment.