Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset d19b3fc in mainline


Ignore:
Timestamp:
2018-11-07T22:29:27Z (3 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
ef4218f
Parents:
aae365bc
git-author:
Jakub Jermar <jakub@…> (2018-11-07 21:38:15)
git-committer:
Jakub Jermar <jakub@…> (2018-11-07 22:29:27)
Message:

Remove smp_call

Location:
kernel
Files:
10 deleted
17 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    raae365bc rd19b3fc  
    230230        generic/src/smp/ipi.c \
    231231        generic/src/smp/smp.c \
    232         generic/src/smp/smp_call.c \
    233232        generic/src/ipc/ipc.c \
    234233        generic/src/ipc/sysipc.c \
     
    293292                test/print/print4.c \
    294293                test/print/print5.c \
    295                 test/thread/thread1.c \
    296                 test/smpcall/smpcall1.c
     294                test/thread/thread1.c
    297295
    298296        ifeq ($(KARCH),mips32)
  • kernel/arch/abs32le/Makefile.inc

    raae365bc rd19b3fc  
    5151        arch/$(KARCH)/src/cpu/cpu.c \
    5252        arch/$(KARCH)/src/smp/smp.c \
    53         arch/$(KARCH)/src/smp/smp_call.c \
    5453        arch/$(KARCH)/src/smp/ipi.c \
    5554        arch/$(KARCH)/src/mm/km.c \
  • kernel/arch/amd64/Makefile.inc

    raae365bc rd19b3fc  
    8585                arch/$(KARCH)/src/smp/ipi.c \
    8686                arch/$(KARCH)/src/smp/mps.c \
    87                 arch/$(KARCH)/src/smp/smp_call.c \
    8887                arch/$(KARCH)/src/smp/smp.c
    8988endif
  • kernel/arch/amd64/include/arch/interrupt.h

    raae365bc rd19b3fc  
    8181#define VECTOR_TLB_SHOOTDOWN_IPI  (IVT_FREEBASE + 1)
    8282#define VECTOR_DEBUG_IPI          (IVT_FREEBASE + 2)
    83 #define VECTOR_SMP_CALL_IPI       (IVT_FREEBASE + 3)
    8483
    8584extern void (*disable_irqs_function)(uint16_t);
  • kernel/arch/amd64/src/interrupt.c

    raae365bc rd19b3fc  
    5353#include <symtab.h>
    5454#include <stacktrace.h>
    55 #include <smp/smp_call.h>
    5655
    5756/*
     
    161160        tlb_shootdown_ipi_recv();
    162161}
    163 
    164 static void arch_smp_call_ipi_recv(unsigned int n, istate_t *istate)
    165 {
    166         trap_virtual_eoi();
    167         smp_call_ipi_recv();
    168 }
    169162#endif
    170163
     
    229222        exc_register(VECTOR_TLB_SHOOTDOWN_IPI, "tlb_shootdown", true,
    230223            (iroutine_t) tlb_shootdown_ipi);
    231         exc_register(VECTOR_SMP_CALL_IPI, "smp_call", true,
    232             (iroutine_t) arch_smp_call_ipi_recv);
    233224#endif
    234225}
  • kernel/arch/ia32/Makefile.inc

    raae365bc rd19b3fc  
    7676        arch/$(KARCH)/src/smp/mps.c \
    7777        arch/$(KARCH)/src/smp/smp.c \
    78         arch/$(KARCH)/src/smp/smp_call.c \
    7978        arch/$(KARCH)/src/atomic.S \
    8079        arch/$(KARCH)/src/smp/ipi.c \
  • kernel/arch/ia32/include/arch/interrupt.h

    raae365bc rd19b3fc  
    8585#define VECTOR_TLB_SHOOTDOWN_IPI  (IVT_FREEBASE + 1)
    8686#define VECTOR_DEBUG_IPI          (IVT_FREEBASE + 2)
    87 #define VECTOR_SMP_CALL_IPI       (IVT_FREEBASE + 3)
    8887
    8988extern void (*disable_irqs_function)(uint16_t);
  • kernel/arch/ia32/src/interrupt.c

    raae365bc rd19b3fc  
    5555#include <symtab.h>
    5656#include <stacktrace.h>
    57 #include <smp/smp_call.h>
    5857#include <proc/task.h>
    5958
     
    183182        tlb_shootdown_ipi_recv();
    184183}
    185 
    186 static void arch_smp_call_ipi_recv(unsigned int n, istate_t *istate)
    187 {
    188         trap_virtual_eoi();
    189         smp_call_ipi_recv();
    190 }
    191184#endif
    192185
     
    250243        exc_register(VECTOR_TLB_SHOOTDOWN_IPI, "tlb_shootdown", true,
    251244            (iroutine_t) tlb_shootdown_ipi);
    252         exc_register(VECTOR_SMP_CALL_IPI, "smp_call", true,
    253             (iroutine_t) arch_smp_call_ipi_recv);
    254245#endif
    255246}
  • kernel/arch/ia64/Makefile.inc

    raae365bc rd19b3fc  
    5858        arch/$(KARCH)/src/smc.c \
    5959        arch/$(KARCH)/src/smp/smp.c \
    60         arch/$(KARCH)/src/smp/smp_call.c \
    6160        arch/$(KARCH)/src/drivers/it.c
    6261
  • kernel/arch/mips32/Makefile.inc

    raae365bc rd19b3fc  
    6868        arch/$(KARCH)/src/smc.c \
    6969        arch/$(KARCH)/src/smp/smp.c \
    70         arch/$(KARCH)/src/smp/smp_call.c \
    7170        arch/$(KARCH)/src/machine_func.c
    7271
  • kernel/arch/sparc64/Makefile.inc

    raae365bc rd19b3fc  
    9999        ARCH_SOURCES += \
    100100                arch/$(KARCH)/src/smp/$(USARCH)/smp.c \
    101                 arch/$(KARCH)/src/smp/$(USARCH)/smp_call.c \
    102101                arch/$(KARCH)/src/smp/$(USARCH)/ipi.c
    103102endif
  • kernel/arch/sparc64/include/arch/interrupt.h

    raae365bc rd19b3fc  
    4747enum {
    4848        IPI_TLB_SHOOTDOWN = VECTOR_TLB_SHOOTDOWN_IPI,
    49         IPI_SMP_CALL
    5049};
    5150
  • kernel/arch/sparc64/src/smp/sun4u/ipi.c

    raae365bc rd19b3fc  
    3535#include <smp/ipi.h>
    3636#include <arch/barrier.h>
    37 #include <arch/smp/sun4u/ipi.h>
    3837#include <assert.h>
    3938#include <cpu.h>
     
    4342#include <config.h>
    4443#include <mm/tlb.h>
    45 #include <smp/smp_call.h>
    4644#include <arch/interrupt.h>
    4745#include <arch/trap/interrupt.h>
     
    175173}
    176174
    177 /*
    178  * Deliver an IPI to the specified processors (except the current one).
    179  *
    180  * Interrupts must be disabled.
    181  *
    182  * @param cpu_id Destination cpu id (index into cpus array). Must not
    183  *               be the current cpu.
    184  * @param ipi    IPI number.
    185  */
    186 void ipi_unicast_arch(unsigned int cpu_id, int ipi)
    187 {
    188         assert(&cpus[cpu_id] != CPU);
    189 
    190         if (ipi == IPI_SMP_CALL) {
    191                 cross_call(cpus[cpu_id].arch.mid, smp_call_ipi_recv);
    192         } else {
    193                 panic("Unknown IPI (%d).\n", ipi);
    194                 return;
    195         }
    196 }
    197 
    198175/** @}
    199176 */
  • kernel/generic/include/cpu.h

    raae365bc rd19b3fc  
    9898
    9999        /**
    100          * SMP calls to invoke on this CPU.
    101          */
    102         SPINLOCK_DECLARE(smp_calls_lock);
    103         list_t smp_pending_calls;
    104 
    105         /**
    106100         * Stack used by scheduler when there is no running thread.
    107101         */
  • kernel/generic/src/main/main.c

    raae365bc rd19b3fc  
    7878#include <synch/waitq.h>
    7979#include <synch/futex.h>
    80 #include <smp/smp_call.h>
    8180#include <arch/arch.h>
    8281#include <arch.h>
     
    273272        ARCH_OP(post_cpu_init);
    274273
    275         smp_call_init();
    276274        clock_counter_init();
    277275        timeout_init();
     
    379377void main_ap_separated_stack(void)
    380378{
    381         smp_call_init();
    382 
    383379        /*
    384380         * Configure timeouts for this cpu.
  • kernel/test/test.c

    raae365bc rd19b3fc  
    5757#include <print/print5.def>
    5858#include <thread/thread1.def>
    59 #include <smpcall/smpcall1.def>
    6059        {
    6160                .name = NULL,
  • kernel/test/test.h

    raae365bc rd19b3fc  
    7676extern const char *test_print5(void);
    7777extern const char *test_thread1(void);
    78 extern const char *test_smpcall1(void);
    7978
    8079extern test_t tests[];
Note: See TracChangeset for help on using the changeset viewer.