Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Mar 2018 14:47:08 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r331297 - head/sys/arm/at91
Message-ID:  <201803211447.w2LEl8l4091936@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: imp
Date: Wed Mar 21 14:47:08 2018
New Revision: 331297
URL: https://svnweb.freebsd.org/changeset/base/331297

Log:
  This is MPSAFE on this platform, so don't take Giant out while running
  the callback.

Modified:
  head/sys/arm/at91/at91_rst.c

Modified: head/sys/arm/at91/at91_rst.c
==============================================================================
--- head/sys/arm/at91/at91_rst.c	Wed Mar 21 14:47:03 2018	(r331296)
+++ head/sys/arm/at91/at91_rst.c	Wed Mar 21 14:47:08 2018	(r331297)
@@ -124,7 +124,7 @@ at91_rst_attach(device_t dev)
 	at91_rst_sc = sc = device_get_softc(dev);
 	sc->sc_dev = dev;
 
-	callout_init(&sc->tick_ch, 0);
+	callout_init(&sc->tick_ch, 1);
 
 	rid = 0;
 	sc->mem_res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &rid,



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803211447.w2LEl8l4091936>