Remove dead debugging code still existing around.

Index: linux-2.6.16/arch/um/sys-i386/tls.c
===================================================================
--- linux-2.6.16.orig/arch/um/sys-i386/tls.c	2006-03-23 20:31:45.000000000 -0500
+++ linux-2.6.16/arch/um/sys-i386/tls.c	2006-03-23 20:32:40.000000000 -0500
@@ -92,12 +92,6 @@ int load_TLS(int flags, struct task_stru
 	for (idx = GDT_ENTRY_TLS_MIN; idx < GDT_ENTRY_TLS_MAX; idx++) {
 		struct uml_tls_struct* curr = &to->thread.arch.tls_array[idx - GDT_ENTRY_TLS_MIN];
 
-#if 0
-		/* This check is a bit bogus. We won't clear the GDT entry at
-		 * task switch, which means that access through this segment
-		 * descriptor may not get the expected faults.
-		 */
-#endif
 		/* Actually, now if it wasn't flushed it gets cleared and
 		 * flushed to the host, which will clear it.*/
 		if (!curr->present) {
@@ -124,22 +118,19 @@ out:
 }
 
 /* Verify if we need to do a flush for the new process, i.e. if there are any
- * present desc's; if force_presents = 0, only if they haven't been flushed.
- * XXX: remove the force_presents param if not needed.
+ * present desc's, only if they haven't been flushed.
  */
-int needs_TLS_update(int force_presents, struct task_struct *task)
+static inline int needs_TLS_update(struct task_struct *task)
 {
-	int ret = 0;
 	int i;
+	int ret = 0;
 
 	for (i = GDT_ENTRY_TLS_MIN; i < GDT_ENTRY_TLS_MAX; i++) {
 		struct uml_tls_struct* curr = &task->thread.arch.tls_array[i - GDT_ENTRY_TLS_MIN];
 
-		/* Wrong since we may need anyway to flush it.*/
-		/*if (!curr->present)
-			continue;*/
-
-		if (!(curr->flushed || force_presents))
+		/* Can't test curr->present, we may need to clear a descriptor
+		 * which had a value. */
+		if (!(curr->flushed))
 			continue;
 		ret = 1;
 		break;
@@ -158,12 +149,9 @@ void clear_flushed_tls(struct task_struc
 		struct uml_tls_struct* curr = &task->thread.arch.tls_array[i - GDT_ENTRY_TLS_MIN];
 
 		/* Still correct to do this, if it wasn't present on the host it
-		 * will remain as flushed as it was. But let's put it out for
-		 * now. */
-#if 0 /*OPTIM to reintroduce*/
+		 * will remain as flushed as it was. */
 		if (!curr->present)
 			continue;
-#endif
 
 		curr->flushed = 0;
 	}
@@ -179,7 +167,7 @@ int arch_switch_tls_skas(struct task_str
 
 int arch_switch_tls_tt(struct task_struct *from, struct task_struct *to)
 {
-	if (needs_TLS_update(0, to))
+	if (needs_TLS_update(to))
 		return load_TLS(0, to);
 
 	return 0;
Index: linux-2.6.16/arch/um/kernel/skas/process_kern.c
===================================================================
--- linux-2.6.16.orig/arch/um/kernel/skas/process_kern.c	2006-03-23 20:32:35.000000000 -0500
+++ linux-2.6.16/arch/um/kernel/skas/process_kern.c	2006-03-23 20:32:40.000000000 -0500
@@ -82,7 +82,6 @@ void release_thread_skas(struct task_str
 
 //XXX: debug only I hope.
 #define O_FORCE 1
-extern int needs_TLS_update(int force_presents, struct task_struct *task);
 extern int load_TLS(int flags, struct task_struct *to);
 
 void fork_handler(int sig)
