X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=lttng-context.c;h=406f479de92994217b2c1e5c480086752b173e27;hb=a9799a5121562e2e5fa8f31b01151f195efc92fc;hp=d299d5e2e97412f90e05dec1e78295ebd01a2fd3;hpb=65c85aa61984217039857513bbe988036f371693;p=lttng-modules.git diff --git a/lttng-context.c b/lttng-context.c index d299d5e2..406f479d 100644 --- a/lttng-context.c +++ b/lttng-context.c @@ -300,18 +300,14 @@ int lttng_context_init(void) if (ret) { printk(KERN_WARNING "Cannot add context lttng_add_need_reschedule_to_ctx"); } -#if defined(CONFIG_PREEMPT_RT_FULL) || defined(CONFIG_PREEMPT) ret = lttng_add_preemptible_to_ctx(<tng_static_ctx); - if (ret != -ENOSYS) { + if (ret && ret != -ENOSYS) { printk(KERN_WARNING "Cannot add context lttng_add_preemptible_to_ctx"); } -#endif -#ifdef CONFIG_PREEMPT_RT_FULL ret = lttng_add_migratable_to_ctx(<tng_static_ctx); - if (ret != -ENOSYS) { + if (ret && ret != -ENOSYS) { printk(KERN_WARNING "Cannot add context lttng_add_migratable_to_ctx"); } -#endif /* TODO: perf counters for filtering */ return 0; }