From: visa Date: Wed, 27 Dec 2017 13:16:53 +0000 (+0000) Subject: Make octeon_intr_establish() assume edge triggering with CIU3. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=761635584ac41ae2414ce72c8e49ba13b235d700;p=openbsd Make octeon_intr_establish() assume edge triggering with CIU3. This makes the API usable with edge triggered interrupt sources. --- diff --git a/sys/arch/octeon/dev/octcit.c b/sys/arch/octeon/dev/octcit.c index c01ee6d73c9..fef4663414e 100644 --- a/sys/arch/octeon/dev/octcit.c +++ b/sys/arch/octeon/dev/octcit.c @@ -1,4 +1,4 @@ -/* $OpenBSD: octcit.c,v 1.3 2017/12/27 13:14:42 visa Exp $ */ +/* $OpenBSD: octcit.c,v 1.4 2017/12/27 13:16:53 visa Exp $ */ /* * Copyright (c) 2017 Visa Hankala @@ -244,7 +244,8 @@ void * octcit_intr_establish(int irq, int level, int (*func)(void *), void *arg, const char *name) { - return octcit_intr_establish_intsn(irq, level, 0, func, arg, name); + return octcit_intr_establish_intsn(irq, level, CIH_EDGE, func, arg, + name); } void *