mirror of https://gitee.com/openkylin/linux.git
Xtensa updates for v5.7:
- replace setup_irq() by request_irq(); - cosmetic fixes in xtensa Kconfig and boot/Makefile. -----BEGIN PGP SIGNATURE----- iQJHBAABCgAxFiEEK2eFS5jlMn3N6xfYUfnMkfg/oEQFAl6QzTYTHGpjbXZia2Jj QGdtYWlsLmNvbQAKCRBR+cyR+D+gRGMYEACXoNgQbXgPER+362F/Ol4cLQ1KwP9+ HvZYXWRbPEmgjHXU3YMhf5zm+9s70uhc6ik7o2YZBisnJjObQuR/nUU4UlofSWv7 9nw+bTCsLWsShxNPpeUiWuITsuNhDaccik6s3FoUPTlgxV10+46QyiQSWMhg7EL2 B0WdF6PLe4uxt0+VpvdjXVHIqDdQE9iFy3wS2izk8adxuUb0AZHib/HndfuloMhn I+FlClyHjdT+DtUjSXcNx4uOx87yxDiCAd1oLxulnjz6LbGpPmqe7SrQ/r140DJ4 4qfNDP5A1rTwMnFKjX8BS8iywDDoQpEtd3Cx8c4tSwTIYSHAkTEqrRzavdrt/I/A 4uf6pCYLNZNNVIr+I3w1ZYRjYyDBQym/UMnZ6LwgMHJipbHMYb7ASN7acxUMrEpl 4+vBASmVTU+gGRBASoqw3FRj/ppK/tGHnAYfxz4JYiGHn8BaIU78R0BRPYjp6ahp n7X9Hz4654b5fgMcjXiBWf2qJX8SsS4gggZuqMYOMeXk1p5c67Y/IbZoQp1qbs0/ R3gcL2rzkTz5NGS7+d5sax7gy7qXoDd3dxW/DX875dFSWMhfy9svFuqozmp03XHg czHNgS1jkLcy3qltSjXluQIo/CQPPF9XQfBIhUptnJsCaI57OWDGchkJzljjtUFY TcVE7mPAnj5KRg== =y3Fr -----END PGP SIGNATURE----- Merge tag 'xtensa-20200410' of git://github.com/jcmvbkbc/linux-xtensa Pull xtensa updates from Max Filippov: - replace setup_irq() by request_irq() - cosmetic fixes in xtensa Kconfig and boot/Makefile * tag 'xtensa-20200410' of git://github.com/jcmvbkbc/linux-xtensa: arch/xtensa: fix grammar in Kconfig help text xtensa: remove meaningless export ccflags-y xtensa: replace setup_irq() by request_irq()
This commit is contained in:
commit
9539303a9b
|
@ -122,7 +122,7 @@ config XTENSA_VARIANT_CUSTOM_NAME
|
|||
help
|
||||
Provide the name of a custom Xtensa processor variant.
|
||||
This CORENAME selects arch/xtensa/variant/CORENAME.
|
||||
Dont forget you have to select MMU if you have one.
|
||||
Don't forget you have to select MMU if you have one.
|
||||
|
||||
config XTENSA_VARIANT_NAME
|
||||
string
|
||||
|
|
|
@ -14,7 +14,6 @@ HOSTFLAGS += -Iarch/$(ARCH)/boot/include
|
|||
|
||||
BIG_ENDIAN := $(shell echo __XTENSA_EB__ | $(CC) -E - | grep -v "\#")
|
||||
|
||||
export ccflags-y
|
||||
export BIG_ENDIAN
|
||||
|
||||
subdir-y := lib
|
||||
|
|
|
@ -53,16 +53,12 @@ static void system_flush_invalidate_dcache_range(unsigned long start,
|
|||
#define IPI_IRQ 0
|
||||
|
||||
static irqreturn_t ipi_interrupt(int irq, void *dev_id);
|
||||
static struct irqaction ipi_irqaction = {
|
||||
.handler = ipi_interrupt,
|
||||
.flags = IRQF_PERCPU,
|
||||
.name = "ipi",
|
||||
};
|
||||
|
||||
void ipi_init(void)
|
||||
{
|
||||
unsigned irq = irq_create_mapping(NULL, IPI_IRQ);
|
||||
setup_irq(irq, &ipi_irqaction);
|
||||
if (request_irq(irq, ipi_interrupt, IRQF_PERCPU, "ipi", NULL))
|
||||
pr_err("Failed to request irq %u (ipi)\n", irq);
|
||||
}
|
||||
|
||||
static inline unsigned int get_core_count(void)
|
||||
|
|
|
@ -128,12 +128,6 @@ static irqreturn_t timer_interrupt(int irq, void *dev_id)
|
|||
return IRQ_HANDLED;
|
||||
}
|
||||
|
||||
static struct irqaction timer_irqaction = {
|
||||
.handler = timer_interrupt,
|
||||
.flags = IRQF_TIMER,
|
||||
.name = "timer",
|
||||
};
|
||||
|
||||
void local_timer_setup(unsigned cpu)
|
||||
{
|
||||
struct ccount_timer *timer = &per_cpu(ccount_timer, cpu);
|
||||
|
@ -184,6 +178,8 @@ static inline void calibrate_ccount(void)
|
|||
|
||||
void __init time_init(void)
|
||||
{
|
||||
int irq;
|
||||
|
||||
of_clk_init(NULL);
|
||||
#ifdef CONFIG_XTENSA_CALIBRATE_CCOUNT
|
||||
pr_info("Calibrating CPU frequency ");
|
||||
|
@ -199,7 +195,9 @@ void __init time_init(void)
|
|||
__func__);
|
||||
clocksource_register_hz(&ccount_clocksource, ccount_freq);
|
||||
local_timer_setup(0);
|
||||
setup_irq(this_cpu_ptr(&ccount_timer)->evt.irq, &timer_irqaction);
|
||||
irq = this_cpu_ptr(&ccount_timer)->evt.irq;
|
||||
if (request_irq(irq, timer_interrupt, IRQF_TIMER, "timer", NULL))
|
||||
pr_err("Failed to request irq %d (timer)\n", irq);
|
||||
sched_clock_register(ccount_sched_clock_read, 32, ccount_freq);
|
||||
timer_probe();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue