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

Changeset d71331b in mainline


Ignore:
Timestamp:
2012-07-01T20:54:53Z (8 years ago)
Author:
Adam Hraska <adam.hraska+hos@…>
Branches:
master
Children:
1f8c11f
Parents:
2ee1ccc
Message:

smp_call: Moved content of arch header to generic header.

Location:
kernel
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r2ee1ccc rd71331b  
    308308                test/print/print4.c \
    309309                test/print/print5.c \
    310                 test/thread/thread1.c
     310                test/thread/thread1.c \
     311                test/smpcall/smpcall1.c
    311312       
    312313        ifeq ($(KARCH),mips32)
  • kernel/arch/amd64/src/smp/smp_call.c

    • Property mode changed from 100644 to 120000
    r2ee1ccc rd71331b  
    1 #include <arch/smp/smp_call.h>
    2 #include <arch/smp/apic.h>
    3 #include <arch/interrupt.h>
    4 #include <cpu.h>
    5 
    6 
    7 void arch_smp_call_ipi(unsigned int cpu_id)
    8 {
    9         (void) l_apic_send_custom_ipi(cpus[cpu_id].arch.id, VECTOR_SMP_CALL_IPI);
    10 }
    11 
     1kernel/arch/ia32/src/smp/smp_call.c
  • kernel/arch/ia32/src/smp/smp_call.c

    r2ee1ccc rd71331b  
    1 #include <arch/smp/smp_call.h>
     1#include <smp/smp_call.h>
    22#include <arch/smp/apic.h>
    33#include <arch/interrupt.h>
    44#include <cpu.h>
    55
     6#ifdef CONFIG_SMP
    67
    78void arch_smp_call_ipi(unsigned int cpu_id)
     
    1011}
    1112
     13#endif /* CONFIG_SMP */
     14
  • kernel/generic/include/smp/smp_call.h

    r2ee1ccc rd71331b  
    2323extern void smp_call_async(unsigned int, smp_call_func_t, void *, smp_call_t *);
    2424extern void smp_call_wait(smp_call_t *);
    25 //extern void smp_broadcast_call(smp_call_func_t, void *);
    2625
    2726extern void smp_call_init(void);
     27
     28#ifdef CONFIG_SMP
    2829extern void smp_call_ipi_recv(void);
     30extern void arch_smp_call_ipi(unsigned int);
     31#endif
     32
    2933
    3034
  • kernel/generic/src/smp/smp_call.c

    r2ee1ccc rd71331b  
    66#include <arch/barrier.h>
    77#include <arch/asm.h>  /* interrupt_disable */
    8 #include <arch/smp/smp_call.h>
    9 
    108
    119
     
    5755 * If @a cpu_id is the local CPU, the function will be invoked
    5856 * directly.
     57 *
     58 * Interrupts must be enabled. Otherwise you run the risk
     59 * of a deadlock.
    5960 *
    6061 * @param cpu_id Destination CPU's logical id (eg CPU->id)
     
    105106/** Waits for a function invoked on another CPU asynchronously to complete.
    106107 *
     108 * Does not sleep but rather spins.
     109 *
    107110 * Example usage:
    108111 * @code
     
    123126        call_wait(call_info);
    124127}
     128
     129#ifdef CONFIG_SMP
    125130
    126131/** Architecture independent smp call IPI handler.
     
    152157}
    153158
     159#endif /* CONFIG_SMP */
    154160
    155161static void call_start(smp_call_t *call_info, smp_call_func_t func, void *arg)
     
    194200
    195201
    196 /*
    197 void smp_broadcast_call(smp_call_func_t func, void *arg)
    198 {
    199 }
    200 */
    201 
Note: See TracChangeset for help on using the changeset viewer.