]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/irqchip/metag.h
License cleanup: add SPDX GPL-2.0 license identifier to files with no license
[mirror_ubuntu-bionic-kernel.git] / include / linux / irqchip / metag.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
5698c50d
JH
2/*
3 * Copyright (C) 2011 Imagination Technologies
4 */
5
6#ifndef _LINUX_IRQCHIP_METAG_H_
7#define _LINUX_IRQCHIP_METAG_H_
8
9#include <linux/errno.h>
10
11#ifdef CONFIG_METAG_PERFCOUNTER_IRQS
12extern int init_internal_IRQ(void);
13extern int internal_irq_map(unsigned int hw);
14#else
15static inline int init_internal_IRQ(void)
16{
17 return 0;
18}
19static inline int internal_irq_map(unsigned int hw)
20{
21 return -EINVAL;
22}
23#endif
24
25#endif /* _LINUX_IRQCHIP_METAG_H_ */