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
@ -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 New Issue
Block a user