mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 01:16:41 +07:00
parisc: Drop CONFIG_SMP around update_cr16_clocksource()
No need to use CONFIG_SMP around update_cr16_clocksource(). It checks for num_online_cpus() beeing greater than 1, which is always 1 in UP builds. Signed-off-by: Helge Deller <deller@gmx.de>
This commit is contained in:
parent
1b59ddfcf1
commit
72581cecee
@ -202,7 +202,6 @@ static struct clocksource clocksource_cr16 = {
|
|||||||
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
|
.flags = CLOCK_SOURCE_IS_CONTINUOUS,
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifdef CONFIG_SMP
|
|
||||||
int update_cr16_clocksource(void)
|
int update_cr16_clocksource(void)
|
||||||
{
|
{
|
||||||
/* since the cr16 cycle counters are not synchronized across CPUs,
|
/* since the cr16 cycle counters are not synchronized across CPUs,
|
||||||
@ -214,12 +213,6 @@ int update_cr16_clocksource(void)
|
|||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
int update_cr16_clocksource(void)
|
|
||||||
{
|
|
||||||
return 0; /* no change */
|
|
||||||
}
|
|
||||||
#endif /*CONFIG_SMP*/
|
|
||||||
|
|
||||||
void __init start_cpu_itimer(void)
|
void __init start_cpu_itimer(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user