summaryrefslogtreecommitdiffstats
path: root/include/linux/padata.h
diff options
context:
space:
mode:
authorDan Kruchinin <dkruchinin@acm.org>2010-07-14 14:33:08 +0400
committerHerbert Xu <herbert@gondor.apana.org.au>2010-07-19 13:50:19 +0800
commit5e017dc3f8bc9e4a28983666e6bc00114a2018bb (patch)
tree4057e6322bc43d5b833b65b5f7372ae57a709fb3 /include/linux/padata.h
parente15bacbebb9dcc95f148f28dfc83a6d5e48b60b8 (diff)
downloadblackbird-op-linux-5e017dc3f8bc9e4a28983666e6bc00114a2018bb.tar.gz
blackbird-op-linux-5e017dc3f8bc9e4a28983666e6bc00114a2018bb.zip
padata: Added sysfs primitives to padata subsystem
Added sysfs primitives to padata subsystem. Now API user may embedded kobject each padata instance contains into any sysfs hierarchy. For now padata sysfs interface provides only two objects: serial_cpumask [RW] - cpumask for serial workers parallel_cpumask [RW] - cpumask for parallel workers Signed-off-by: Dan Kruchinin <dkruchinin@acm.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/padata.h')
-rw-r--r--include/linux/padata.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/padata.h b/include/linux/padata.h
index 621e7736690c..293ad46ffced 100644
--- a/include/linux/padata.h
+++ b/include/linux/padata.h
@@ -26,6 +26,7 @@
#include <linux/list.h>
#include <linux/timer.h>
#include <linux/notifier.h>
+#include <linux/kobject.h>
#define PADATA_CPU_SERIAL 0x01
#define PADATA_CPU_PARALLEL 0x02
@@ -142,7 +143,8 @@ struct parallel_data {
* cbcpu for parallel and serial works respectivly.
* @cpumask_change_notifier: Notifiers chain for user-defined notify
* callbacks that will be called when either @pcpu or @cbcpu
- * or both cpumasks change.
+ * or both cpumasks change.
+ * @kobj: padata instance kernel object.
* @lock: padata instance lock.
* @flags: padata flags.
*/
@@ -155,6 +157,7 @@ struct padata_instance {
cpumask_var_t cbcpu;
} cpumask;
struct blocking_notifier_head cpumask_change_notifier;
+ struct kobject kobj;
struct mutex lock;
u8 flags;
#define PADATA_INIT 1
OpenPOWER on IntegriCloud