summaryrefslogtreecommitdiffstats
path: root/arch/arc/kernel
diff options
context:
space:
mode:
authorVineet Gupta <vgupta@synopsys.com>2013-09-09 16:04:15 +0530
committerVineet Gupta <vgupta@synopsys.com>2013-11-07 14:34:31 +0530
commit7d0857a54aedbd47b3de503933d65ce462970bd6 (patch)
treebb58cf17cbe9e22baae90cb299caf118e51aaa04 /arch/arc/kernel
parent57e26e57454fae4f1d15c2e9fa965b7a8046ab34 (diff)
downloadblackbird-op-linux-7d0857a54aedbd47b3de503933d65ce462970bd6.tar.gz
blackbird-op-linux-7d0857a54aedbd47b3de503933d65ce462970bd6.zip
ARC: [SMP] Disallow RTSC
RTSC is strictly incore and must not be allowed in SMP configs Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc/kernel')
-rw-r--r--arch/arc/kernel/time.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arc/kernel/time.c b/arch/arc/kernel/time.c
index 0a9b6b289c4f..e5f3a837fb35 100644
--- a/arch/arc/kernel/time.c
+++ b/arch/arc/kernel/time.c
@@ -63,9 +63,10 @@
int arc_counter_setup(void)
{
- /* RTSC insn taps into cpu clk, needs no setup */
-
- /* For SMP, only allowed if cross-core-sync, hence usable as cs */
+ /*
+ * For SMP this needs to be 0. However Kconfig glue doesn't
+ * enable this option for SMP configs
+ */
return 1;
}
OpenPOWER on IntegriCloud