[Xenomai-git] Philippe Gerum : Unify calibration values for PA-Semi

2009-06-17 Thread GIT version control
Module: xenomai-2.4
Branch: master
Commit: 11857f78a3fcb7c48e28e792276ec3840f07ecdf
URL:
http://git.xenomai.org/?p=xenomai-2.4.git;a=commit;h=11857f78a3fcb7c48e28e792276ec3840f07ecdf

Author: Philippe Gerum r...@xenomai.org
Date:   Wed Jun 17 00:00:47 2009 +0200

Unify calibration values for PA-Semi

---

 include/asm-powerpc/calibration.h |6 +-
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/include/asm-powerpc/calibration.h 
b/include/asm-powerpc/calibration.h
index 57c2160..b427cea 100644
--- a/include/asm-powerpc/calibration.h
+++ b/include/asm-powerpc/calibration.h
@@ -35,11 +35,7 @@ static inline unsigned long xnarch_get_sched_latency(void)
 
 
 #if defined(CONFIG_PPC_PASEMI)
-#ifdef CONFIG_SMP
-#define __sched_latency 5000
-#else
-#define __sched_latency 3000
-#endif
+#define __sched_latency 1000
 #elif defined(CONFIG_WALNUT)
 #define __sched_latency 11000
 #elif defined(CONFIG_BUBINGA)


___
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : Add calibration default for MPC8272-ADS

2009-06-17 Thread GIT version control
Module: xenomai-head
Branch: master
Commit: b1203294156724749c374bbd26863ce06708a723
URL:
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=b1203294156724749c374bbd26863ce06708a723

Author: Philippe Gerum r...@xenomai.org
Date:   Tue Jun 16 23:58:51 2009 +0200

Add calibration default for MPC8272-ADS

---

 include/asm-powerpc/calibration.h |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/include/asm-powerpc/calibration.h 
b/include/asm-powerpc/calibration.h
index f043243..27f151e 100644
--- a/include/asm-powerpc/calibration.h
+++ b/include/asm-powerpc/calibration.h
@@ -66,6 +66,8 @@ static inline unsigned long xnarch_get_sched_latency(void)
 #define __sched_latency 2900
 #elif defined(CONFIG_MPC5121_ADS)
 #define __sched_latency 4000
+#elif defined(CONFIG_MPC8272_ADS)
+#define __sched_latency 5500
 #elif defined(CONFIG_MVME7100)
 #define __sched_latency 1500
 #elif defined(CONFIG_TQM8548)


___
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : powerpc: make thread_info reference depend on CONFIG_IPIPE_UNMASKED_CONTEXT_SWITCH

2009-06-17 Thread GIT version control
Module: xenomai-head
Branch: master
Commit: b3c6f100200d192f6ca5eee5bc8854b222af0c1f
URL:
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=b3c6f100200d192f6ca5eee5bc8854b222af0c1f

Author: Philippe Gerum r...@xenomai.org
Date:   Wed Jun 17 10:55:09 2009 +0200

powerpc: make thread_info reference depend on 
CONFIG_IPIPE_UNMASKED_CONTEXT_SWITCH

---

 include/asm-powerpc/bits/pod.h|6 +-
 include/asm-powerpc/bits/sched.h  |2 ++
 include/asm-powerpc/bits/shadow.h |2 ++
 include/asm-powerpc/bits/thread.h |2 ++
 include/asm-powerpc/system.h  |4 +++-
 5 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/include/asm-powerpc/bits/pod.h b/include/asm-powerpc/bits/pod.h
index 6baf881..145fd4f 100644
--- a/include/asm-powerpc/bits/pod.h
+++ b/include/asm-powerpc/bits/pod.h
@@ -47,7 +47,9 @@ static inline void xnarch_leave_root(xnarchtcb_t * rootcb)
rootcb-user_task = rootcb-active_task = current;
rootcb-tsp = current-thread;
rootcb-mm = rootcb-active_mm = rthal_get_active_mm();
+#ifdef CONFIG_IPIPE_UNMASKED_CONTEXT_SWITCH
rootcb-tip = task_thread_info(current);
+#endif
 #ifdef CONFIG_XENO_HW_FPU
rootcb-user_fpu_owner = rthal_get_fpu_owner(rootcb-user_task);
/* So that xnarch_save_fpu() will operate on the right FPU area. */
@@ -104,7 +106,7 @@ static inline void xnarch_switch_to(xnarchtcb_t *out_tcb,
 }
rthal_thread_switch(out_tcb-tsp, in_tcb-tsp, next == NULL);
 #else /* PPC32 */
-   if (likely(next_mm)) {
+   if (likely(next_mm != NULL)) {
next-thread.pgdir = next_mm-pgd;
 #if LINUX_VERSION_CODE  KERNEL_VERSION(2,6,29)
get_mmu_context(next_mm);
@@ -134,7 +136,9 @@ static inline void xnarch_init_root_tcb(xnarchtcb_t *tcb,
tcb-tsp = tcb-ts;
tcb-mm = current-mm;
tcb-active_mm = NULL;
+#ifdef CONFIG_IPIPE_UNMASKED_CONTEXT_SWITCH
tcb-tip = tcb-ti;
+#endif
 #ifdef CONFIG_XENO_HW_FPU
tcb-user_fpu_owner = NULL;
tcb-fpup = NULL;
diff --git a/include/asm-powerpc/bits/sched.h b/include/asm-powerpc/bits/sched.h
index 262f03b..3f9f09c 100644
--- a/include/asm-powerpc/bits/sched.h
+++ b/include/asm-powerpc/bits/sched.h
@@ -29,7 +29,9 @@ static inline void xnarch_init_root_tcb(xnarchtcb_t *tcb,
tcb-tsp = tcb-ts;
tcb-mm = current-mm;
tcb-active_mm = NULL;
+#ifdef CONFIG_IPIPE_UNMASKED_CONTEXT_SWITCH
tcb-tip = tcb-ti;
+#endif
 #ifdef CONFIG_XENO_HW_FPU
tcb-user_fpu_owner = NULL;
tcb-fpup = NULL;
diff --git a/include/asm-powerpc/bits/shadow.h 
b/include/asm-powerpc/bits/shadow.h
index 1117e2d..baf702b 100644
--- a/include/asm-powerpc/bits/shadow.h
+++ b/include/asm-powerpc/bits/shadow.h
@@ -38,7 +38,9 @@ static inline void xnarch_init_shadow_tcb(xnarchtcb_t * tcb,
tcb-tsp = task-thread;
tcb-mm = task-mm;
tcb-active_mm = NULL;
+#ifdef CONFIG_IPIPE_UNMASKED_CONTEXT_SWITCH
tcb-tip = task_thread_info(task);
+#endif
 #ifdef CONFIG_XENO_HW_FPU
tcb-user_fpu_owner = task;
tcb-fpup = (rthal_fpenv_t *)  task-thread.fpr[0];
diff --git a/include/asm-powerpc/bits/thread.h 
b/include/asm-powerpc/bits/thread.h
index a33fa53..65ff73b 100644
--- a/include/asm-powerpc/bits/thread.h
+++ b/include/asm-powerpc/bits/thread.h
@@ -34,7 +34,9 @@ static inline void xnarch_init_tcb(xnarchtcb_t * tcb)
tcb-tsp = tcb-ts;
tcb-mm = NULL;
tcb-active_mm = NULL;
+#ifdef CONFIG_IPIPE_UNMASKED_CONTEXT_SWITCH
tcb-tip = tcb-ti;
+#endif
/* Note: .pgdir(ppc32) == NULL for a Xenomai kthread. */
memset(tcb-ts, 0, sizeof(tcb-ts));
 #ifdef CONFIG_XENO_HW_FPU
diff --git a/include/asm-powerpc/system.h b/include/asm-powerpc/system.h
index bb01d38..04e0943 100644
--- a/include/asm-powerpc/system.h
+++ b/include/asm-powerpc/system.h
@@ -51,11 +51,13 @@ typedef struct xnarchtcb {  /* Per-thread arch-dependent 
block */
struct thread_struct *tsp;  /* Pointer to the active thread struct 
(ts or user-thread). */
struct mm_struct *mm;
struct mm_struct *active_mm;
-   struct thread_info *tip; /* Pointer to the active thread info (ti or 
user-thread_info). */
 
/* Kernel mode side */
struct thread_struct ts;/* Holds kernel-based thread context. */
+#ifdef CONFIG_IPIPE_UNMASKED_CONTEXT_SWITCH
+   struct thread_info *tip; /* Pointer to the active thread info (ti or 
user-thread_info). */
struct thread_info ti;  /* Holds kernel-based thread info */
+#endif
 #ifdef CONFIG_XENO_HW_FPU
/* We only care for basic FPU handling in kernel-space; Altivec
   and SPE are not available to kernel-based nucleus threads. */


___
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git


[Xenomai-git] Philippe Gerum : rtdm: fix build for 2.4

2009-06-17 Thread GIT version control
Module: xenomai-head
Branch: master
Commit: 1ccb3c204a0c09ee517a25d5d6cfd20209149122
URL:
http://git.xenomai.org/?p=xenomai-head.git;a=commit;h=1ccb3c204a0c09ee517a25d5d6cfd20209149122

Author: Philippe Gerum r...@xenomai.org
Date:   Wed Jun 17 12:57:45 2009 +0200

rtdm: fix build for 2.4

---

 ksrc/skins/rtdm/drvlib.c |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ksrc/skins/rtdm/drvlib.c b/ksrc/skins/rtdm/drvlib.c
index c5b2b91..9f1cda8 100644
--- a/ksrc/skins/rtdm/drvlib.c
+++ b/ksrc/skins/rtdm/drvlib.c
@@ -33,10 +33,10 @@
 #include linux/bitops.h
 #include linux/delay.h
 #include linux/mman.h
-#include linux/highmem.h
 #include asm/page.h
 #include asm/io.h
 #include asm/pgtable.h
+#include linux/highmem.h
 
 #include rtdm/rtdm_driver.h
 


___
Xenomai-git mailing list
Xenomai-git@gna.org
https://mail.gna.org/listinfo/xenomai-git