microblaze: Do not count system calls in default
authorMichal Simek <monstr@monstr.eu>
Mon, 7 Dec 2009 07:21:34 +0000 (08:21 +0100)
committerMichal Simek <monstr@monstr.eu>
Mon, 14 Dec 2009 07:45:08 +0000 (08:45 +0100)
There is not necessary to count system calls that's why
I added DEBUG macro

Signed-off-by: Michal Simek <monstr@monstr.eu>
arch/microblaze/kernel/entry.S

index 7417d9ad0d189fa73078ca268243c9ef68a3250a..b061d98a3218f2ea7daf979c67dd26cee14dc055 100644 (file)
@@ -31,6 +31,8 @@
 #include <linux/errno.h>
 #include <asm/signal.h>
 
+#undef DEBUG
+
 /* The size of a state save frame. */
 #define STATE_SAVE_SIZE                (PT_SIZE + STATE_SAVE_ARG_SPACE)
 
@@ -352,10 +354,12 @@ C_ENTRY(_user_exception):
        add     r12, r12, r12;                  /* convert num -> ptr */
        add     r12, r12, r12;
 
+#ifdef DEBUG
        /* Trac syscalls and stored them to r0_ram */
        lwi     r3, r12, 0x400 + r0_ram
        addi    r3, r3, 1
        swi     r3, r12, 0x400 + r0_ram
+#endif
 
        # Find and jump into the syscall handler.
        lwi     r12, r12, sys_call_table