Blackfin: swap clocksource ratings for gptimer/cycles
The cycles clocksource is a higher resolution than the gptimer one, so make sure the ratings field reflects this. Signed-off-by: Graf Yang <graf.yang@analog.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
This commit is contained in:
committed by
Mike Frysinger
parent
3289651a97
commit
e78feaaeeb
@@ -648,7 +648,7 @@ config CYCLES_CLOCKSOURCE
|
|||||||
writing the registers will most likely crash the kernel.
|
writing the registers will most likely crash the kernel.
|
||||||
|
|
||||||
config GPTMR0_CLOCKSOURCE
|
config GPTMR0_CLOCKSOURCE
|
||||||
bool "Use GPTimer0 as a clocksource (higher rating)"
|
bool "Use GPTimer0 as a clocksource"
|
||||||
select BFIN_GPTIMERS
|
select BFIN_GPTIMERS
|
||||||
depends on GENERIC_CLOCKEVENTS
|
depends on GENERIC_CLOCKEVENTS
|
||||||
depends on !TICKSOURCE_GPTMR0
|
depends on !TICKSOURCE_GPTMR0
|
||||||
|
@@ -66,7 +66,7 @@ static cycle_t bfin_read_cycles(struct clocksource *cs)
|
|||||||
|
|
||||||
static struct clocksource bfin_cs_cycles = {
|
static struct clocksource bfin_cs_cycles = {
|
||||||
.name = "bfin_cs_cycles",
|
.name = "bfin_cs_cycles",
|
||||||
.rating = 350,
|
.rating = 400,
|
||||||
.read = bfin_read_cycles,
|
.read = bfin_read_cycles,
|
||||||
.mask = CLOCKSOURCE_MASK(64),
|
.mask = CLOCKSOURCE_MASK(64),
|
||||||
.shift = 22,
|
.shift = 22,
|
||||||
@@ -115,7 +115,7 @@ static cycle_t bfin_read_gptimer0(void)
|
|||||||
|
|
||||||
static struct clocksource bfin_cs_gptimer0 = {
|
static struct clocksource bfin_cs_gptimer0 = {
|
||||||
.name = "bfin_cs_gptimer0",
|
.name = "bfin_cs_gptimer0",
|
||||||
.rating = 400,
|
.rating = 350,
|
||||||
.read = bfin_read_gptimer0,
|
.read = bfin_read_gptimer0,
|
||||||
.mask = CLOCKSOURCE_MASK(32),
|
.mask = CLOCKSOURCE_MASK(32),
|
||||||
.shift = 22,
|
.shift = 22,
|
||||||
|
Reference in New Issue
Block a user