.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * kernel/ksysfs.c - sysfs attributes in /sys/kernel, which |
---|
3 | 4 | * are not related to any other subsystem |
---|
4 | 5 | * |
---|
5 | 6 | * Copyright (C) 2004 Kay Sievers <kay.sievers@vrfy.org> |
---|
6 | | - * |
---|
7 | | - * This file is release under the GPLv2 |
---|
8 | | - * |
---|
9 | 7 | */ |
---|
10 | 8 | |
---|
11 | 9 | #include <linux/kobject.h> |
---|
.. | .. |
---|
140 | 138 | |
---|
141 | 139 | #endif /* CONFIG_CRASH_CORE */ |
---|
142 | 140 | |
---|
143 | | -#if defined(CONFIG_PREEMPT_RT_FULL) |
---|
| 141 | +#if defined(CONFIG_PREEMPT_RT) |
---|
144 | 142 | static ssize_t realtime_show(struct kobject *kobj, |
---|
145 | 143 | struct kobj_attribute *attr, char *buf) |
---|
146 | 144 | { |
---|
.. | .. |
---|
240 | 238 | &rcu_expedited_attr.attr, |
---|
241 | 239 | &rcu_normal_attr.attr, |
---|
242 | 240 | #endif |
---|
243 | | -#ifdef CONFIG_PREEMPT_RT_FULL |
---|
| 241 | +#ifdef CONFIG_PREEMPT_RT |
---|
244 | 242 | &realtime_attr.attr, |
---|
245 | 243 | #endif |
---|
246 | 244 | NULL |
---|
.. | .. |
---|
280 | 278 | return error; |
---|
281 | 279 | } |
---|
282 | 280 | |
---|
283 | | -#ifdef CONFIG_ROCKCHIP_THUNDER_BOOT |
---|
284 | | -pure_initcall(ksysfs_init); |
---|
285 | | -#else |
---|
286 | 281 | core_initcall(ksysfs_init); |
---|
287 | | -#endif |
---|