Skip to content

Commit

Permalink
ARC: [SMP] Disallow RTSC
Browse files Browse the repository at this point in the history
RTSC is strictly incore and must not be allowed in SMP configs

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
  • Loading branch information
Vineet Gupta committed Nov 7, 2013
1 parent 57e26e5 commit 7d0857a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
6 changes: 1 addition & 5 deletions arch/arc/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,6 @@ if SMP
config ARC_HAS_COH_CACHES
def_bool n

config ARC_HAS_COH_RTSC
def_bool n

config ARC_HAS_REENTRANT_IRQ_LV2
def_bool n

Expand Down Expand Up @@ -332,8 +329,7 @@ config ARC_HAS_RTSC
bool "Insn: RTSC (64-bit r/o cycle counter)"
default y
depends on ARC_CPU_REL_4_10
# if SMP, enable RTSC only if counter is coherent across cores
depends on !SMP || ARC_HAS_COH_RTSC
depends on !SMP

endmenu # "ARC CPU Configuration"

Expand Down
7 changes: 4 additions & 3 deletions arch/arc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 7d0857a

Please sign in to comment.