Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/mips/cavium Reenable preemption before returning an...



details:   https://anonhg.NetBSD.org/src/rev/71c40d38616e
branches:  trunk
changeset: 338802:71c40d38616e
user:      martin <martin%NetBSD.org@localhost>
date:      Tue Jun 09 12:10:08 2015 +0000

description:
Reenable preemption before returning an error when trying to set the
watchdog to an invalid period.

diffstat:

 sys/arch/mips/cavium/octeon_cpunode.c |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 3d45325f7cc0 -r 71c40d38616e sys/arch/mips/cavium/octeon_cpunode.c
--- a/sys/arch/mips/cavium/octeon_cpunode.c     Tue Jun 09 10:44:55 2015 +0000
+++ b/sys/arch/mips/cavium/octeon_cpunode.c     Tue Jun 09 12:10:08 2015 +0000
@@ -373,6 +373,7 @@
                // doesn't overflow a 32-bit value, we are fine.  We write the
                // 16-bits of the 32-bit period.
                if ((wdog_len >> 32) != 0) {
+                       kpreempt_enable();
                        return EINVAL;
                }
                sc->sc_wdog_period = smw->smw_period;



Home | Main Index | Thread Index | Old Index