mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-30 22:26:42 +00:00
xf86-video-nvidia*: kernel 3.11 support
This commit is contained in:
parent
225f9a5493
commit
b37370de99
@ -0,0 +1,25 @@
|
|||||||
|
From 8a8647ad942c8ac5161e1335f7f3e9dbb34dbf9e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Lukas Elsner <open@mindrunner.de>
|
||||||
|
Date: Wed, 17 Jul 2013 01:16:04 +0200
|
||||||
|
Subject: [PATCH] replace num_physpages with totalram_pages
|
||||||
|
|
||||||
|
---
|
||||||
|
kernel/nv-linux.h | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/kernel/nv-linux.h b/kernel/nv-linux.h
|
||||||
|
index 4e5ed89..46c51ec 100644
|
||||||
|
--- a/kernel/nv-linux.h
|
||||||
|
+++ b/kernel/nv-linux.h
|
||||||
|
@@ -957,7 +957,7 @@ static inline int nv_execute_on_all_cpus(void (*func)(void *info), void *info)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !defined(NV_VMWARE)
|
||||||
|
-#define NV_NUM_PHYSPAGES num_physpages
|
||||||
|
+#define NV_NUM_PHYSPAGES totalram_pages
|
||||||
|
#define NV_GET_CURRENT_PROCESS() current->tgid
|
||||||
|
#define NV_IN_ATOMIC() in_atomic()
|
||||||
|
#define NV_LOCAL_BH_DISABLE() local_bh_disable()
|
||||||
|
--
|
||||||
|
1.8.3.2
|
||||||
|
|
@ -0,0 +1,25 @@
|
|||||||
|
From 8a8647ad942c8ac5161e1335f7f3e9dbb34dbf9e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Lukas Elsner <open@mindrunner.de>
|
||||||
|
Date: Wed, 17 Jul 2013 01:16:04 +0200
|
||||||
|
Subject: [PATCH] replace num_physpages with totalram_pages
|
||||||
|
|
||||||
|
---
|
||||||
|
kernel/nv-linux.h | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/kernel/nv-linux.h b/kernel/nv-linux.h
|
||||||
|
index 4e5ed89..46c51ec 100644
|
||||||
|
--- a/kernel/nv-linux.h
|
||||||
|
+++ b/kernel/nv-linux.h
|
||||||
|
@@ -957,7 +957,7 @@ static inline int nv_execute_on_all_cpus(void (*func)(void *info), void *info)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if !defined(NV_VMWARE)
|
||||||
|
-#define NV_NUM_PHYSPAGES num_physpages
|
||||||
|
+#define NV_NUM_PHYSPAGES totalram_pages
|
||||||
|
#define NV_GET_CURRENT_PROCESS() current->tgid
|
||||||
|
#define NV_IN_ATOMIC() in_atomic()
|
||||||
|
#define NV_LOCAL_BH_DISABLE() local_bh_disable()
|
||||||
|
--
|
||||||
|
1.8.3.2
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user