ARM: tegra: dvfs: Remove obsolete gpu_dvfs debugfs node
Alex Frid [Sat, 12 Oct 2013 04:01:23 +0000 (21:01 -0700)]
Change-Id: Idb9e5b225b2b94232200154e00f5843889516106
Signed-off-by: Alex Frid <afrid@nvidia.com>
Reviewed-on: http://git-master/r/298529
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Yu-Huan Hsu <yhsu@nvidia.com>
Reviewed-by: Chris Dragan <kdragan@nvidia.com>

arch/arm/mach-tegra/dvfs.c
arch/arm/mach-tegra/dvfs.h
arch/arm/mach-tegra/tegra12_dvfs.c

index c79ea01..4e4c763 100644 (file)
@@ -1778,39 +1778,6 @@ static const struct file_operations rail_stats_fops = {
        .release        = single_release,
 };
 
-static int gpu_dvfs_show(struct seq_file *s, void *data)
-{
-       int idx;
-       int *millivolts;
-       unsigned long *freqs;
-
-       if (read_gpu_dvfs_table(&millivolts, &freqs)) {
-               seq_printf(s, "Only supported for T124 or higher\n");
-               return 0;
-       }
-
-       seq_printf(s, "millivolts \t \t frequency\n");
-       seq_printf(s, "=====================================\n");
-
-       for (idx = 0; millivolts[idx]; idx++)
-               seq_printf(s, "%d mV \t \t %lu Hz\n", millivolts[idx],
-                               freqs[idx]);
-
-       return 0;
-}
-
-static int gpu_dvfs_open(struct inode *inode, struct file *file)
-{
-       return single_open(file, gpu_dvfs_show, NULL);
-}
-
-static const struct file_operations gpu_dvfs_fops = {
-       .open           = gpu_dvfs_open,
-       .read           = seq_read,
-       .llseek         = seq_lseek,
-       .release        = single_release,
-};
-
 static int rail_offs_set(struct dvfs_rail *rail, int offs)
 {
        if (rail) {
@@ -2050,11 +2017,6 @@ int __init dvfs_debugfs_init(struct dentry *clk_debugfs_root)
        if (!d)
                return -ENOMEM;
 
-       d = debugfs_create_file("gpu_dvfs", S_IRUGO | S_IWUSR,
-               clk_debugfs_root, NULL, &gpu_dvfs_fops);
-       if (!d)
-               return -ENOMEM;
-
        d = debugfs_create_file("gpu_dvfs_t", S_IRUGO | S_IWUSR,
                clk_debugfs_root, NULL, &gpu_dvfs_t_fops);
        if (!d)
index 0ca378a..98e31ee 100644 (file)
@@ -266,13 +266,6 @@ int tegra_dvfs_init_thermal_dvfs_voltages(
        int *millivolts, int freqs_num, int ranges_num, struct dvfs *d);
 int tegra_dvfs_rail_dfll_mode_set_cold(struct dvfs_rail *rail);
 
-#ifdef CONFIG_ARCH_TEGRA_12x_SOC
-int read_gpu_dvfs_table(int **millivolts, unsigned long **freqs);
-#else
-static inline int read_gpu_dvfs_table(int **millivolts, unsigned long **freqs)
-{ return -EINVAL; }
-#endif
-
 #ifndef CONFIG_ARCH_TEGRA_2x_SOC
 int tegra_dvfs_rail_disable_prepare(struct dvfs_rail *rail);
 int tegra_dvfs_rail_post_enable(struct dvfs_rail *rail);
index 5b68683..20967a4 100644 (file)
@@ -409,15 +409,6 @@ static struct dvfs gpu_dvfs = {
        .dvfs_rail      = &tegra12_dvfs_rail_vdd_gpu,
 };
 
-int read_gpu_dvfs_table(int **millivolts, unsigned long **freqs)
-{
-       *millivolts = gpu_dvfs.millivolts;
-       *freqs = gpu_dvfs.freqs;
-
-       return 0;
-}
-EXPORT_SYMBOL(read_gpu_dvfs_table);
-
 int tegra_dvfs_disable_core_set(const char *arg, const struct kernel_param *kp)
 {
        int ret;