diff options
| author | David Keitel <dkeitel@codeaurora.org> | 2016-05-09 14:27:48 -0700 |
|---|---|---|
| committer | Jeevan Shriram <jshriram@codeaurora.org> | 2016-05-16 20:10:17 -0700 |
| commit | 5834faf08567295e2af94003347a3aeae7c984ef (patch) | |
| tree | 44f602eff7317d875b1a1246c576065f91936c86 /kernel | |
| parent | 3993dd4312f4385caec9a6c2b408da6c5b2412ad (diff) | |
trace: cpu_freq_switch: use tracefs instead of debugfs
Rather than using debugfs, switch to tracefs which trace
moved to in kernel 4.4.
Signed-off-by: David Keitel <dkeitel@codeaurora.org>
Change-Id: I52ef7d45cabb20cc61fbd2fb3ef5016b041bc56c
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/trace/trace_cpu_freq_switch.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kernel/trace/trace_cpu_freq_switch.c b/kernel/trace/trace_cpu_freq_switch.c index 18d2390ccb3a..f9dab6c4bb72 100644 --- a/kernel/trace/trace_cpu_freq_switch.c +++ b/kernel/trace/trace_cpu_freq_switch.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2012, The Linux Foundation. All rights reserved. + * Copyright (c) 2012, 2016 The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -17,7 +17,7 @@ #include <linux/slab.h> #include <linux/rbtree.h> #include <linux/hrtimer.h> -#include <linux/debugfs.h> +#include <linux/tracefs.h> #include <linux/ktime.h> #include <trace/events/power.h> #include "trace_stat.h" @@ -301,10 +301,10 @@ static int __init trace_freq_switch_init(void) { struct dentry *d_tracer = tracing_init_dentry(); - if (!d_tracer) + if (IS_ERR(d_tracer)) return 0; - debugfs_create_file("cpu_freq_switch_profile_enabled", + tracefs_create_file("cpu_freq_switch_profile_enabled", S_IRUGO | S_IWUSR, d_tracer, NULL, &debug_tracing_state_fops); return 0; |
