提交 9c7d462e 编写于 作者: D Dave Airlie 提交者: Dave Airlie

drm: fix issues with systems with no MTRR

On systems with no MTRR we should still define the interface.

Original bug from apkm.
Signed-off-by: NDave Airlie <airlied@linux.ie>
上级 aab8df14
...@@ -767,6 +767,20 @@ static inline int drm_mtrr_del(int handle, unsigned long offset, ...@@ -767,6 +767,20 @@ static inline int drm_mtrr_del(int handle, unsigned long offset,
#else #else
#define drm_core_has_MTRR(dev) (0) #define drm_core_has_MTRR(dev) (0)
#define DRM_MTRR_WC 0
static inline int drm_mtrr_add(unsigned long offset, unsigned long size,
unsigned int flags)
{
return 0;
}
static inline int drm_mtrr_del(int handle, unsigned long offset,
unsigned long size, unsigned int flags)
{
return 0;
}
#endif #endif
/******************************************************************/ /******************************************************************/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册