Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
smpboot.h
Go to the documentation of this file.
1 #ifndef _LINUX_SMPBOOT_H
2 #define _LINUX_SMPBOOT_H
3 
4 #include <linux/types.h>
5 
6 struct task_struct;
7 /* Cookie handed to the thread_fn*/
9 
29  struct list_head list;
30  int (*thread_should_run)(unsigned int cpu);
31  void (*thread_fn)(unsigned int cpu);
32  void (*setup)(unsigned int cpu);
33  void (*cleanup)(unsigned int cpu, bool online);
34  void (*park)(unsigned int cpu);
35  void (*unpark)(unsigned int cpu);
36  const char *thread_comm;
37 };
38 
39 int smpboot_register_percpu_thread(struct smp_hotplug_thread *plug_thread);
41 int smpboot_thread_schedule(void);
42 
43 #endif