svn commit: r253054 - head/sys/dev/mmc
Rui Paulo
rpaulo at FreeBSD.org
Tue Jul 9 03:00:06 UTC 2013
Author: rpaulo
Date: Tue Jul 9 03:00:06 2013
New Revision: 253054
URL: http://svnweb.freebsd.org/changeset/base/253054
Log:
Use meaningful names when creating mmc/sd threads.
This can be useful when we want to be able to identify which mmcsd is stuck.
Modified:
head/sys/dev/mmc/mmcsd.c
Modified: head/sys/dev/mmc/mmcsd.c
==============================================================================
--- head/sys/dev/mmc/mmcsd.c Tue Jul 9 02:50:05 2013 (r253053)
+++ head/sys/dev/mmc/mmcsd.c Tue Jul 9 03:00:06 2013 (r253054)
@@ -199,7 +199,8 @@ mmcsd_attach(device_t dev)
sc->running = 1;
sc->suspend = 0;
sc->eblock = sc->eend = 0;
- kproc_create(&mmcsd_task, sc, &sc->p, 0, 0, "task: mmc/sd card");
+ kproc_create(&mmcsd_task, sc, &sc->p, 0, 0, "%s: mmc/sd card",
+ device_get_nameunit(dev));
return (0);
}
@@ -260,7 +261,8 @@ mmcsd_resume(device_t dev)
if (sc->running <= 0) {
sc->running = 1;
MMCSD_UNLOCK(sc);
- kproc_create(&mmcsd_task, sc, &sc->p, 0, 0, "task: mmc/sd card");
+ kproc_create(&mmcsd_task, sc, &sc->p, 0, 0, "%s: mmc/sd card",
+ device_get_nameunit(dev));
} else
MMCSD_UNLOCK(sc);
return (0);
More information about the svn-src-all
mailing list