root/include/linux/smp.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #ifndef __LINUX_SMP_H
   2 #define __LINUX_SMP_H
   3 
   4 /*
   5  *      Generic SMP support
   6  *              Alan Cox. <alan@cymru.net>
   7  */
   8 
   9 #include <asm/smp.h>
  10 
  11  
  12 extern void smp_message_pass(int target, int msg, unsigned long data, int wait);
  13 extern void smp_boot_cpus(void);                /* Boot processor call to load the other CPU's */
  14 extern void smp_callin(void);                   /* Processor call in. Must hold processors until .. */
  15 extern void smp_commence(void);                 /* Multiprocessors may now schedule */
  16 extern int smp_num_cpus;
  17 extern int smp_threads_ready;                   /* True once the per process idle is forked */
  18 extern volatile unsigned long smp_spins;        /* Count of spins */
  19 
  20 extern volatile unsigned long smp_msg_data;
  21 extern volatile int smp_src_cpu;
  22 extern volatile int smp_msg_id;
  23 
  24 #define MSG_ALL_BUT_SELF        0x8000          /* Assume <32768 CPU's */
  25 #define MSG_ALL                 0x8001
  26 
  27 #define MSG_INVALIDATE_TLB      0x0001          /* Remote processor TLB invalidate */
  28 #define MSG_STOP_CPU            0x0002          /* Sent to shut down slave CPU's when rebooting */
  29 #define MSG_RESCHEDULE          0x0003          /* Reschedule request from master CPU */
  30 
  31 #endif

/* [previous][next][first][last][top][bottom][index][help] */