diff options
Diffstat (limited to 'litmus/fdso.c')
-rw-r--r-- | litmus/fdso.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/litmus/fdso.c b/litmus/fdso.c index 250377d184e7..709be3cc8992 100644 --- a/litmus/fdso.c +++ b/litmus/fdso.c | |||
@@ -20,13 +20,28 @@ | |||
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 | |||
26 | &generic_lock_ops, /* MPCP_SEM */ | 31 | &generic_lock_ops, /* MPCP_SEM */ |
27 | &generic_lock_ops, /* MPCP_VS_SEM */ | 32 | &generic_lock_ops, /* MPCP_VS_SEM */ |
28 | &generic_lock_ops, /* DPCP_SEM */ | 33 | &generic_lock_ops, /* DPCP_SEM */ |
29 | &generic_lock_ops, /* PCP_SEM */ | 34 | &generic_lock_ops, /* PCP_SEM */ |
35 | |||
36 | &generic_lock_ops, /* RSM_MUTEX */ | ||
37 | &generic_lock_ops, /* IKGLP_SEM */ | ||
38 | &generic_lock_ops, /* KFMLP_SEM */ | ||
39 | #ifdef CONFIG_LITMUS_AFFINITY_LOCKING | ||
40 | &generic_affinity_ops, /* IKGLP_SIMPLE_GPU_AFF_OBS */ | ||
41 | &generic_affinity_ops, /* IKGLP_GPU_AFF_OBS */ | ||
42 | &generic_affinity_ops, /* KFMLP_SIMPLE_GPU_AFF_OBS */ | ||
43 | &generic_affinity_ops, /* KFMLP_GPU_AFF_OBS */ | ||
44 | #endif | ||
30 | }; | 45 | }; |
31 | 46 | ||
32 | static int fdso_create(void** obj_ref, obj_type_t type, void* __user config) | 47 | static int fdso_create(void** obj_ref, obj_type_t type, void* __user config) |