mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-19 02:54:00 +08:00
ARC: [SMP] Disallow RTSC
RTSC is strictly incore and must not be allowed in SMP configs Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
This commit is contained in:
parent
57e26e5745
commit
7d0857a54a
@ -136,9 +136,6 @@ if SMP
|
|||||||
config ARC_HAS_COH_CACHES
|
config ARC_HAS_COH_CACHES
|
||||||
def_bool n
|
def_bool n
|
||||||
|
|
||||||
config ARC_HAS_COH_RTSC
|
|
||||||
def_bool n
|
|
||||||
|
|
||||||
config ARC_HAS_REENTRANT_IRQ_LV2
|
config ARC_HAS_REENTRANT_IRQ_LV2
|
||||||
def_bool n
|
def_bool n
|
||||||
|
|
||||||
@ -332,8 +329,7 @@ config ARC_HAS_RTSC
|
|||||||
bool "Insn: RTSC (64-bit r/o cycle counter)"
|
bool "Insn: RTSC (64-bit r/o cycle counter)"
|
||||||
default y
|
default y
|
||||||
depends on ARC_CPU_REL_4_10
|
depends on ARC_CPU_REL_4_10
|
||||||
# if SMP, enable RTSC only if counter is coherent across cores
|
depends on !SMP
|
||||||
depends on !SMP || ARC_HAS_COH_RTSC
|
|
||||||
|
|
||||||
endmenu # "ARC CPU Configuration"
|
endmenu # "ARC CPU Configuration"
|
||||||
|
|
||||||
|
@ -63,9 +63,10 @@
|
|||||||
|
|
||||||
int arc_counter_setup(void)
|
int arc_counter_setup(void)
|
||||||
{
|
{
|
||||||
/* RTSC insn taps into cpu clk, needs no setup */
|
/*
|
||||||
|
* For SMP this needs to be 0. However Kconfig glue doesn't
|
||||||
/* For SMP, only allowed if cross-core-sync, hence usable as cs */
|
* enable this option for SMP configs
|
||||||
|
*/
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user