mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 02:15:21 +07:00
877c61dc63
Migrate cevt-4k driver to the new 'set-state' interface provided by clockevents core, the earlier 'set-mode' interface is marked obsolete now. This also enables us to implement callbacks for new states of clockevent devices, for example: ONESHOT_STOPPED. We weren't doing anything in the ->set_mode() callback. So, this patch doesn't provide any set-state callbacks. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Cc: James Hogan <james.hogan@imgtec.com> Cc: Andrew Bresticker <abrestic@chromium.org> Cc: Qais Yousef <qais.yousef@imgtec.com> Cc: Jason Cooper <jason@lakedaemon.net> Cc: Leonid Yegoshin <Leonid.Yegoshin@imgtec.com> Cc: Daniel Lezcano <daniel.lezcano@linaro.org> Cc: linux-mips@linux-mips.org Cc: linaro-kernel@lists.linaro.org Cc: Thomas Gleixner <tglx@linutronix.de> Patchwork: https://patchwork.linux-mips.org/patch/10605/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
30 lines
823 B
C
30 lines
823 B
C
/*
|
|
* This file is subject to the terms and conditions of the GNU General Public
|
|
* License. See the file "COPYING" in the main directory of this archive
|
|
* for more details.
|
|
*
|
|
* Copyright (C) 2008 Kevin D. Kissell
|
|
*/
|
|
|
|
/*
|
|
* Definitions used for common event timer implementation
|
|
* for MIPS 4K-type processors and their MIPS MT variants.
|
|
* Avoids unsightly extern declarations in C files.
|
|
*/
|
|
#ifndef __ASM_CEVT_R4K_H
|
|
#define __ASM_CEVT_R4K_H
|
|
|
|
#include <linux/clockchips.h>
|
|
#include <asm/time.h>
|
|
|
|
DECLARE_PER_CPU(struct clock_event_device, mips_clockevent_device);
|
|
|
|
void mips_event_handler(struct clock_event_device *dev);
|
|
int c0_compare_int_usable(void);
|
|
irqreturn_t c0_compare_interrupt(int, void *);
|
|
|
|
extern struct irqaction c0_compare_irqaction;
|
|
extern int cp0_timer_irq_installed;
|
|
|
|
#endif /* __ASM_CEVT_R4K_H */
|