diff options
Diffstat (limited to 'litmus/fdso.c')
-rw-r--r-- | litmus/fdso.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/litmus/fdso.c b/litmus/fdso.c index aa7b384264e3..18fc61b6414a 100644 --- a/litmus/fdso.c +++ b/litmus/fdso.c | |||
@@ -20,9 +20,22 @@ | |||
20 | 20 | ||
21 | extern struct fdso_ops generic_lock_ops; | 21 | extern struct fdso_ops generic_lock_ops; |
22 | 22 | ||
23 | #ifdef CONFIG_LITMUS_AFFINITY_LOCKING | ||
24 | extern struct fdso_ops generic_affinity_ops; | ||
25 | #endif | ||
26 | |||
23 | static const struct fdso_ops* fdso_ops[] = { | 27 | static const struct fdso_ops* fdso_ops[] = { |
24 | &generic_lock_ops, /* FMLP_SEM */ | 28 | &generic_lock_ops, /* FMLP_SEM */ |
25 | &generic_lock_ops, /* SRP_SEM */ | 29 | &generic_lock_ops, /* SRP_SEM */ |
30 | &generic_lock_ops, /* RSM_MUTEX */ | ||
31 | &generic_lock_ops, /* IKGLP_SEM */ | ||
32 | &generic_lock_ops, /* KFMLP_SEM */ | ||
33 | #ifdef CONFIG_LITMUS_AFFINITY_LOCKING | ||
34 | &generic_affinity_ops, /* IKGLP_SIMPLE_GPU_AFF_OBS */ | ||
35 | &generic_affinity_ops, /* IKGLP_GPU_AFF_OBS */ | ||
36 | &generic_affinity_ops, /* KFMLP_SIMPLE_GPU_AFF_OBS */ | ||
37 | &generic_affinity_ops, /* KFMLP_GPU_AFF_OBS */ | ||
38 | #endif | ||
26 | }; | 39 | }; |
27 | 40 | ||
28 | static int fdso_create(void** obj_ref, obj_type_t type, void* __user config) | 41 | static int fdso_create(void** obj_ref, obj_type_t type, void* __user config) |