Add the minimal set of kernel patches need to for the SPL. Hopefully

even these will not be needed over the next few weeks.



git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@121 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
This commit is contained in:
behlendo 2008-06-02 19:45:04 +00:00
parent f93f7c8dbe
commit fe81cb1c43
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,13 @@
Index: linux+rh+chaos/include/asm-x86_64/page.h
===================================================================
--- linux+rh+chaos.orig/include/asm-x86_64/page.h
+++ linux+rh+chaos/include/asm-x86_64/page.h
@@ -10,7 +10,7 @@
#define PAGE_MASK (~(PAGE_SIZE-1))
#define PHYSICAL_PAGE_MASK (~(PAGE_SIZE-1) & __PHYSICAL_MASK)
-#define THREAD_ORDER 1
+#define THREAD_ORDER 2
#define THREAD_SIZE (PAGE_SIZE << THREAD_ORDER)
#define CURRENT_MASK (~(THREAD_SIZE-1))

View File

@ -0,0 +1,12 @@
Index: linux+rh+chaos/kernel/sched.c
===================================================================
--- linux+rh+chaos.orig/kernel/sched.c
+++ linux+rh+chaos/kernel/sched.c
@@ -1038,6 +1038,7 @@ inline int task_curr(const struct task_s
{
return cpu_curr(task_cpu(p)) == p;
}
+EXPORT_SYMBOL(task_curr);
/* Used instead of source_load when we know the type == 0 */
unsigned long weighted_cpuload(const int cpu)