mirror of https://github.com/OpenIPC/firmware.git
32 lines
1.1 KiB
Diff
32 lines
1.1 KiB
Diff
diff -drupN a/fs/proc/base.c b/fs/proc/base.c
|
|
--- a/fs/proc/base.c 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/fs/proc/base.c 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -87,6 +87,7 @@
|
|
#include <linux/slab.h>
|
|
#include <linux/flex_array.h>
|
|
#include <linux/posix-timers.h>
|
|
+#include <linux/cpufreq_times.h>
|
|
#ifdef CONFIG_HARDWALL
|
|
#include <asm/hardwall.h>
|
|
#endif
|
|
@@ -2967,6 +2968,9 @@ static const struct pid_entry tgid_base_
|
|
REG("timers", S_IRUGO, proc_timers_operations),
|
|
#endif
|
|
REG("timerslack_ns", S_IRUGO|S_IWUGO, proc_pid_set_timerslack_ns_operations),
|
|
+#ifdef CONFIG_CPU_FREQ_TIMES
|
|
+ ONE("time_in_state", 0444, proc_time_in_state_show),
|
|
+#endif
|
|
};
|
|
|
|
static int proc_tgid_base_readdir(struct file *file, struct dir_context *ctx)
|
|
@@ -3351,6 +3355,9 @@ static const struct pid_entry tid_base_s
|
|
REG("projid_map", S_IRUGO|S_IWUSR, proc_projid_map_operations),
|
|
REG("setgroups", S_IRUGO|S_IWUSR, proc_setgroups_operations),
|
|
#endif
|
|
+#ifdef CONFIG_CPU_FREQ_TIMES
|
|
+ ONE("time_in_state", 0444, proc_time_in_state_show),
|
|
+#endif
|
|
};
|
|
|
|
static int proc_tid_base_readdir(struct file *file, struct dir_context *ctx)
|