Revert "ARM: tegra: misc: pmureader driver"
Bo Yan [Wed, 7 Nov 2012 04:53:04 +0000 (20:53 -0800)]
This reverts commit c1be13b9d1895756acb18054a2c14b595bfd6037.

Change-Id: I02c1683f98816a59fdce6932d115e45460a4cbc0
Signed-off-by: Bo Yan <byan@nvidia.com>
Reviewed-on: http://git-master/r/161865
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Seshendra Gadagottu <sgadagottu@nvidia.com>
GVS: Gerrit_Virtual_Submit

drivers/misc/Makefile
drivers/misc/tegra-pmu-userspace.c [deleted file]

index 1d7cd35..2090195 100644 (file)
@@ -65,4 +65,3 @@ obj-$(CONFIG_APANIC)          += apanic.o
 obj-$(CONFIG_THERM_EST)                += therm_est.o
 obj-$(CONFIG_TEGRA_THROUGHPUT) += tegra-throughput.o
 obj-$(CONFIG_SND_SOC_TEGRA_CS42L73)    += a2220.o
-obj-$(CONFIG_ARCH_TEGRA_11x_SOC) += tegra-pmu-userspace.o
diff --git a/drivers/misc/tegra-pmu-userspace.c b/drivers/misc/tegra-pmu-userspace.c
deleted file mode 100644 (file)
index 683b43f..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * drivers/misc/tegra-pmu-userspace.c
- *
- * Copyright (C) 2012, NVIDIA CORPORATION. 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 as published by
- * the Free Software Foundation, version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
- */
-
-#include <linux/module.h>
-#include <linux/init.h>
-#include <linux/smp.h>
-
-static void __init enable_userspace_access(void *info)
-{
-       /* Disabling overflow interrupts. This is done to *
-        * potential kernel blocking from the userspace   */
-       asm ("mcr p15, 0, %0, c9, c14, 2\n\t" : : "r"(0x8000000f));
-
-       /* Enabling the userspace access to the performance counters */
-       asm ("mcr p15, 0, %0, c9, c14, 0\n\t" : : "r"(1));
-
-       printk(KERN_INFO "tegrapmu: performance counters access enabled" \
-                                        "on CPU #%d\n", smp_processor_id());
-}
-
-static void __exit disable_userspace_access(void *info)
-{
-       /* Disabling the userspace access to the performance counters */
-       asm ("mcr p15, 0, %0, c9, c14, 0\n\t" : : "r"(0));
-
-       printk(KERN_INFO "tegrapmu: performance counters access disabled" \
-                                       "on CPU #%d\n", smp_processor_id());
-}
-
-static int __init nvlostcycles_init(void)
-{
-       printk(KERN_INFO "tegrapmu: init\n");
-
-       /* Enabling performance counters access from userspace on all cores */
-       (void) on_each_cpu(enable_userspace_access, NULL, \
-                                        1 /* wait for execution */);
-
-       return 0;
-}
-
-static void __exit nvlostcycles_exit(void)
-{
-       printk(KERN_INFO "nvlostcycles: exit\n");
-
-       /* Disabling performance counters access from userspace on all cores */
-       (void) on_each_cpu(disable_userspace_access, NULL, \
-                                       1 /* wait for execution */);
-
-       return;
-}
-
-module_init(nvlostcycles_init);
-module_exit(nvlostcycles_exit);
-
-MODULE_LICENSE("GPL");
-