patch-2.1.115 linux/arch/sparc/kernel/sun4m_smp.c

Next file: linux/arch/sparc/kernel/sun4setup.c
Previous file: linux/arch/sparc/kernel/sun4m_irq.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.114/linux/arch/sparc/kernel/sun4m_smp.c linux/arch/sparc/kernel/sun4m_smp.c
@@ -3,7 +3,6 @@
  * Copyright (C) 1996 David S. Miller (davem@caip.rutgers.edu)
  */
 
-#include <linux/config.h> /* for CONFIG_PROFILE */
 #include <asm/head.h>
 
 #include <linux/kernel.h>
@@ -433,8 +432,6 @@
 /* Protects counters touched during level14 ticker */
 static spinlock_t ticker_lock = SPIN_LOCK_UNLOCKED;
 
-#ifdef CONFIG_PROFILE
-
 /* 32-bit Sparc specific profiling function. */
 static inline void sparc_do_profile(unsigned long pc)
 {
@@ -453,8 +450,6 @@
 	}
 }
 
-#endif
-
 extern unsigned int prof_multiplier[NR_CPUS];
 extern unsigned int prof_counter[NR_CPUS];
 
@@ -467,10 +462,10 @@
 	int cpu = smp_processor_id();
 
 	clear_profile_irq(mid_xlate[cpu]);
-#ifdef CONFIG_PROFILE
+
 	if(!user_mode(regs))
 		sparc_do_profile(regs->pc);
-#endif
+
 	if(!--prof_counter[cpu]) {
 		int user = user_mode(regs);
 		if(current->pid) {
@@ -478,7 +473,7 @@
 
 			if(--current->counter < 0) {
 				current->counter = 0;
-				need_resched = 1;
+				current->need_resched = 1;
 			}
 
 			spin_lock(&ticker_lock);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov