Revert "Bluetooth: Store advertising handle so it can be re-enabled"
[platform/kernel/linux-rpi.git] / kernel / ksysfs.c
index 1d4bc49..486c68c 100644 (file)
@@ -179,6 +179,15 @@ KERNEL_ATTR_RO(crash_elfcorehdr_size);
 
 #endif /* CONFIG_CRASH_CORE */
 
+#if defined(CONFIG_PREEMPT_RT)
+static ssize_t realtime_show(struct kobject *kobj,
+                            struct kobj_attribute *attr, char *buf)
+{
+       return sprintf(buf, "%d\n", 1);
+}
+KERNEL_ATTR_RO(realtime);
+#endif
+
 /* whether file capabilities are enabled */
 static ssize_t fscaps_show(struct kobject *kobj,
                                  struct kobj_attribute *attr, char *buf)
@@ -275,6 +284,9 @@ static struct attribute * kernel_attrs[] = {
        &rcu_expedited_attr.attr,
        &rcu_normal_attr.attr,
 #endif
+#ifdef CONFIG_PREEMPT_RT
+       &realtime_attr.attr,
+#endif
        NULL
 };