Staging
v0.7.0
https://github.com/torvalds/linux
Raw File
Tip revision: dcb99fd9b08cfe1afe426af4d8d3cbc429190f15 authored by Linus Torvalds on 17 March 2014, 01:51:24 UTC
Linux 3.14-rc7
Tip revision: dcb99fd
irq.c
/*
 * ARC FPGA Platform IRQ hookups
 *
 * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com)
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#include <linux/interrupt.h>
#include <plat/irq.h>

void __init plat_fpga_init_IRQ(void)
{
	/*
	 * SMP Hack because UART IRQ hardwired to cpu0 (boot-cpu) but if the
	 * request_irq() comes from any other CPU, the low level IRQ unamsking
	 * essential for getting Interrupts won't be enabled on cpu0, locking
	 * up the UART state machine.
	 */
#ifdef CONFIG_SMP
	arch_unmask_irq(UART0_IRQ);
#endif
}
back to top