]> rtime.felk.cvut.cz Git - sojka/nv-tegra/linux-3.10.git/blobdiff - drivers/misc/tegra-profiler/main.c
misc: tegra-profiler: fix backtraces for 64-bit
[sojka/nv-tegra/linux-3.10.git] / drivers / misc / tegra-profiler / main.c
index 0f364d773084bbfb834eff3014af0730888934b1..7a1f5c7b99739ae23c51061ceda1e5f9fec7527b 100644 (file)
@@ -161,10 +161,7 @@ static inline int is_event_supported(struct source_info *si, int event)
 static int
 validate_freq(unsigned int freq)
 {
-       if (capable(CAP_SYS_ADMIN))
-               return freq >= 100 && freq <= 100000;
-       else
-               return freq == 100 || freq == 1000 || freq == 10000;
+       return freq >= 100 && freq <= 100000;
 }
 
 static int