mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 16:54:02 +00:00
Use meaningful names when creating mmc/sd threads.
This can be useful when we want to be able to identify which mmcsd is stuck.
This commit is contained in:
parent
b2b175ba30
commit
88e07d922d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=253054
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue