mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-01-19 06:56:08 +07:00
hrtimers: simplify hrtimer_peek_ahead_timers()
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
e1dd7bc585
commit
643bdf68f9
@ -1394,22 +1394,16 @@ void hrtimer_interrupt(struct clock_event_device *dev)
|
|||||||
*/
|
*/
|
||||||
void hrtimer_peek_ahead_timers(void)
|
void hrtimer_peek_ahead_timers(void)
|
||||||
{
|
{
|
||||||
unsigned long flags;
|
|
||||||
struct tick_device *td;
|
struct tick_device *td;
|
||||||
struct clock_event_device *dev;
|
unsigned long flags;
|
||||||
|
|
||||||
if (!hrtimer_hres_active())
|
if (!hrtimer_hres_active())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
local_irq_save(flags);
|
local_irq_save(flags);
|
||||||
td = &__get_cpu_var(tick_cpu_device);
|
td = &__get_cpu_var(tick_cpu_device);
|
||||||
if (!td)
|
if (td && td->evtdev)
|
||||||
goto out;
|
hrtimer_interrupt(td->evtdev);
|
||||||
dev = td->evtdev;
|
|
||||||
if (!dev)
|
|
||||||
goto out;
|
|
||||||
hrtimer_interrupt(dev);
|
|
||||||
out:
|
|
||||||
local_irq_restore(flags);
|
local_irq_restore(flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user