diff options
author | Paul Gortmaker <paul.gortmaker@windriver.com> | 2017-10-03 23:19:51 -0400 |
---|---|---|
committer | Paul Gortmaker <paul.gortmaker@windriver.com> | 2017-10-03 23:19:51 -0400 |
commit | 0d505b50bb26c88f439c8fe97a7cb03abb3a7e01 (patch) | |
tree | 48b7b8c66f4c3065169de9139b3df836bd4e4f98 | |
parent | 1308dd148e61f3617b6169ab8d6ae15bcaa1612f (diff) | |
download | 4.12-rt-patches-0d505b50bb26c88f439c8fe97a7cb03abb3a7e01.tar.gz |
refresh sysfs-realtime-entry.patchrt-v4.11-11129-gbf5f89463f5b
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
-rw-r--r-- | patches/sysfs-realtime-entry.patch | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/patches/sysfs-realtime-entry.patch b/patches/sysfs-realtime-entry.patch index e06abca2f27d8d..b553a785872486 100644 --- a/patches/sysfs-realtime-entry.patch +++ b/patches/sysfs-realtime-entry.patch @@ -1,6 +1,7 @@ -Subject: sysfs: Add /sys/kernel/realtime entry +From 241ebc0c1b8506bb173624d98670e60c55a67de4 Mon Sep 17 00:00:00 2001 From: Clark Williams <williams@redhat.com> -Date: Sat Jul 30 21:55:53 2011 -0500 +Date: Sat, 30 Jul 2011 21:55:53 -0500 +Subject: [PATCH] sysfs: Add /sys/kernel/realtime entry Add a /sys/kernel entry to indicate that the kernel is a realtime kernel. @@ -13,15 +14,14 @@ Are there better solutions? Should it exist and return 0 on !-rt? Signed-off-by: Clark Williams <williams@redhat.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> ---- - kernel/ksysfs.c | 12 ++++++++++++ - 1 file changed, 12 insertions(+) +diff --git a/kernel/ksysfs.c b/kernel/ksysfs.c +index 23cd70651238..9d23330a5a90 100644 --- a/kernel/ksysfs.c +++ b/kernel/ksysfs.c -@@ -136,6 +136,15 @@ KERNEL_ATTR_RO(vmcoreinfo); +@@ -140,6 +140,15 @@ KERNEL_ATTR_RO(vmcoreinfo); - #endif /* CONFIG_KEXEC_CORE */ + #endif /* CONFIG_CRASH_CORE */ +#if defined(CONFIG_PREEMPT_RT_FULL) +static ssize_t realtime_show(struct kobject *kobj, @@ -35,7 +35,7 @@ Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> /* whether file capabilities are enabled */ static ssize_t fscaps_show(struct kobject *kobj, struct kobj_attribute *attr, char *buf) -@@ -225,6 +234,9 @@ static struct attribute * kernel_attrs[] +@@ -231,6 +240,9 @@ static struct attribute * kernel_attrs[] = { &rcu_expedited_attr.attr, &rcu_normal_attr.attr, #endif @@ -45,3 +45,6 @@ Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> NULL }; +-- +2.1.4 + |