[COMMON] sched: sysctl: match the variable type
authorJohnlay Park <jonglae.park@samsung.com>
Fri, 23 Mar 2018 07:44:04 +0000 (16:44 +0900)
committerChungwoo Park <cww.park@samsung.com>
Mon, 21 May 2018 08:35:41 +0000 (17:35 +0900)
for fixing the build error on clang

Change-Id: I396d4f622018fcf2bd601b7c8405640896943493
Signed-off-by: Johnlay Park <jonglae.park@samsung.com>
include/linux/sched/sysctl.h

index e076ff8179b209dbe26e0f09e32e40d446f12c3a..5736801c209b184b88455a017b88867455c56f3d 100644 (file)
@@ -46,9 +46,11 @@ extern unsigned int sysctl_numa_balancing_scan_period_max;
 extern unsigned int sysctl_numa_balancing_scan_size;
 
 #ifdef CONFIG_SCHED_DEBUG
-extern unsigned int sysctl_sched_migration_cost;
-extern unsigned int sysctl_sched_nr_migrate;
-extern unsigned int sysctl_sched_time_avg;
+# include <linux/static_key.h>
+
+extern __read_mostly unsigned int sysctl_sched_migration_cost;
+extern __read_mostly unsigned int sysctl_sched_nr_migrate;
+extern __read_mostly unsigned int sysctl_sched_time_avg;
 
 int sched_proc_update_handler(struct ctl_table *table, int write,
                void __user *buffer, size_t *length,