diff options
| author | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
|---|---|---|
| committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | 2012-10-19 15:19:19 -0400 |
| commit | e05dacd71db0a5da7c1a44bcaab2a8a240b9c233 (patch) | |
| tree | 31382cf1c7d62c03126448affb2fc86e8c4aaa8b /include/linux/smpboot.h | |
| parent | 3ab0b83bf6a1e834f4b884150d8012990c75d25d (diff) | |
| parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) | |
Merge commit 'v3.7-rc1' into stable/for-linus-3.7
* commit 'v3.7-rc1': (10892 commits)
Linux 3.7-rc1
x86, boot: Explicitly include autoconf.h for hostprogs
perf: Fix UAPI fallout
ARM: config: make sure that platforms are ordered by option string
ARM: config: sort select statements alphanumerically
UAPI: (Scripted) Disintegrate include/linux/byteorder
UAPI: (Scripted) Disintegrate include/linux
UAPI: Unexport linux/blk_types.h
UAPI: Unexport part of linux/ppp-comp.h
perf: Handle new rbtree implementation
procfs: don't need a PATH_MAX allocation to hold a string representation of an int
vfs: embed struct filename inside of names_cache allocation if possible
audit: make audit_inode take struct filename
vfs: make path_openat take a struct filename pointer
vfs: turn do_path_lookup into wrapper around struct filename variant
audit: allow audit code to satisfy getname requests from its names_list
vfs: define struct filename and have getname() return it
btrfs: Fix compilation with user namespace support enabled
userns: Fix posix_acl_file_xattr_userns gid conversion
userns: Properly print bluetooth socket uids
...
Diffstat (limited to 'include/linux/smpboot.h')
| -rw-r--r-- | include/linux/smpboot.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/include/linux/smpboot.h b/include/linux/smpboot.h new file mode 100644 index 000000000000..e0106d8581d3 --- /dev/null +++ b/include/linux/smpboot.h | |||
| @@ -0,0 +1,43 @@ | |||
| 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*/ | ||
| 8 | struct smpboot_thread_data; | ||
| 9 | |||
| 10 | /** | ||
| 11 | * struct smp_hotplug_thread - CPU hotplug related thread descriptor | ||
| 12 | * @store: Pointer to per cpu storage for the task pointers | ||
| 13 | * @list: List head for core management | ||
| 14 | * @thread_should_run: Check whether the thread should run or not. Called with | ||
| 15 | * preemption disabled. | ||
| 16 | * @thread_fn: The associated thread function | ||
| 17 | * @setup: Optional setup function, called when the thread gets | ||
| 18 | * operational the first time | ||
| 19 | * @cleanup: Optional cleanup function, called when the thread | ||
| 20 | * should stop (module exit) | ||
| 21 | * @park: Optional park function, called when the thread is | ||
| 22 | * parked (cpu offline) | ||
| 23 | * @unpark: Optional unpark function, called when the thread is | ||
| 24 | * unparked (cpu online) | ||
| 25 | * @thread_comm: The base name of the thread | ||
| 26 | */ | ||
| 27 | struct smp_hotplug_thread { | ||
| 28 | struct task_struct __percpu **store; | ||
| 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); | ||
| 40 | void smpboot_unregister_percpu_thread(struct smp_hotplug_thread *plug_thread); | ||
| 41 | int smpboot_thread_schedule(void); | ||
| 42 | |||
| 43 | #endif | ||
