Remove unused __syscall_count

Remove unused __syscall_count

Post by Rusty Russel » Fri, 04 Jul 2003 08:20:09



Noone complained: Linus, please apply.

Noone seems to use __syscall_count.  Remove the field from i386
irq_cpustat_t struct, and the generic accessor macros.

Because some archs have hardcoded asm references to offsets in this
structure, I haven't touched non-x86, but doing so is usually
trivial.

Name: Remove unused __syscall_count from irq_stat struct.
Author: Rusty Russell
Status: Tested on 2.5.73-bk8

D: Noone seems to use __syscall_count.  Remove the field from i386
D: irq_cpustat_t struct, and the generic accessor macros.
D:
D: Because some archs have hardcoded asm references to offsets in this
D: structure, I haven't touched non-x86, but doing so is usually
D: trivial.

diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal .2143-linux-2.5.73-bk8/include/asm-i386/hardirq.h .2143-linux-2.5.73-bk8.updated/include/asm-i386/hardirq.h
--- .2143-linux-2.5.73-bk8/include/asm-i386/hardirq.h   2003-04-08 11:14:55.000000000 +1000

 typedef struct {
        unsigned int __softirq_pending;
-       unsigned int __syscall_count;
        struct task_struct * __ksoftirqd_task; /* waitqueue is too large */
        unsigned long idle_timestamp;
        unsigned int __nmi_count;       /* arch dependent */
diff -urpN --exclude TAGS -X /home/rusty/devel/kernel/kernel-patches/current-dontdiff --minimal .2143-linux-2.5.73-bk8/include/linux/irq_cpustat.h .2143-linux-2.5.73-bk8.updated/include/linux/irq_cpustat.h
--- .2143-linux-2.5.73-bk8/include/linux/irq_cpustat.h  2003-06-15 11:30:08.000000000 +1000

   /* arch independent irq_stat fields */
 #define softirq_pending(cpu)   __IRQ_STAT((cpu), __softirq_pending)
 #define local_softirq_pending()        softirq_pending(smp_processor_id())
-#define syscall_count(cpu)     __IRQ_STAT((cpu), __syscall_count)
-#define local_syscall_count()  syscall_count(smp_processor_id())
 #define ksoftirqd_task(cpu)    __IRQ_STAT((cpu), __ksoftirqd_task)
 #define local_ksoftirqd_task() ksoftirqd_task(smp_processor_id())

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. remove unused var from serio struct

diff -urpN --exclude-from=/home/davej/.exclude bk-linus/include/linux/serio.h linux-2.5/include/linux/serio.h
--- bk-linus/include/linux/serio.h      2003-03-08 09:57:59.000000000 +0000

        void *driver;
        char *name;
        char *phys;
-       int number;

        unsigned short idbus;
        unsigned short idvendor;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Samba Troubles

3. [TRIVIAL] remove agpgart_be.c unused variables

4. A funny thing about Windoze networking (if you can really call it that).

5. remove an unused function from NCR53c406a.c

6. can't see what i type in Bash shell!

7. remove unused variable in wacom driver

8. FP trap to C++ exception

9. [TRIVIAL] remove unused label in dnotify.c

10. [2/6] Remove unused "dev" argument from cb_setup_cis_mem

11. remove unused reset_videobios_after_s3

12. rmmod -a does not remove unused modules!

13. remove unused declaration