hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/kernel/ksysfs.c
....@@ -1,11 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * kernel/ksysfs.c - sysfs attributes in /sys/kernel, which
34 * are not related to any other subsystem
45 *
56 * Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org>
6
- *
7
- * This file is release under the GPLv2
8
- *
97 */
108
119 #include <linux/kobject.h>
....@@ -140,7 +138,7 @@
140138
141139 #endif /* CONFIG_CRASH_CORE */
142140
143
-#if defined(CONFIG_PREEMPT_RT_FULL)
141
+#if defined(CONFIG_PREEMPT_RT)
144142 static ssize_t realtime_show(struct kobject *kobj,
145143 struct kobj_attribute *attr, char *buf)
146144 {
....@@ -240,7 +238,7 @@
240238 &rcu_expedited_attr.attr,
241239 &rcu_normal_attr.attr,
242240 #endif
243
-#ifdef CONFIG_PREEMPT_RT_FULL
241
+#ifdef CONFIG_PREEMPT_RT
244242 &realtime_attr.attr,
245243 #endif
246244 NULL
....@@ -280,8 +278,4 @@
280278 return error;
281279 }
282280
283
-#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT
284
-pure_initcall(ksysfs_init);
285
-#else
286281 core_initcall(ksysfs_init);
287
-#endif