.. | .. |
---|
140 | 140 | |
---|
141 | 141 | #endif /* CONFIG_CRASH_CORE */ |
---|
142 | 142 | |
---|
| 143 | +#if defined(CONFIG_PREEMPT_RT_FULL) |
---|
| 144 | +static ssize_t realtime_show(struct kobject *kobj, |
---|
| 145 | + struct kobj_attribute *attr, char *buf) |
---|
| 146 | +{ |
---|
| 147 | + return sprintf(buf, "%d\n", 1); |
---|
| 148 | +} |
---|
| 149 | +KERNEL_ATTR_RO(realtime); |
---|
| 150 | +#endif |
---|
| 151 | + |
---|
143 | 152 | /* whether file capabilities are enabled */ |
---|
144 | 153 | static ssize_t fscaps_show(struct kobject *kobj, |
---|
145 | 154 | struct kobj_attribute *attr, char *buf) |
---|
.. | .. |
---|
231 | 240 | &rcu_expedited_attr.attr, |
---|
232 | 241 | &rcu_normal_attr.attr, |
---|
233 | 242 | #endif |
---|
| 243 | +#ifdef CONFIG_PREEMPT_RT_FULL |
---|
| 244 | + &realtime_attr.attr, |
---|
| 245 | +#endif |
---|
234 | 246 | NULL |
---|
235 | 247 | }; |
---|
236 | 248 | |
---|