diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-11-07 17:43:36 +0000 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2021-11-07 17:43:36 +0000 |
commit | a2baa8634834b462a613ff6cc74becee2efc9a3c (patch) | |
tree | ac43067ceb6fe5344d405b749934761f7b011415 /sys/src/9/bcm/emmc.c | |
parent | 2925fb09a6d5c661280fc2bc7a9222144a522235 (diff) |
bcm/emmc: remove unused cardr wakeup(), use MACHP(0) as tick reference
Diffstat (limited to 'sys/src/9/bcm/emmc.c')
-rw-r--r-- | sys/src/9/bcm/emmc.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/src/9/bcm/emmc.c b/sys/src/9/bcm/emmc.c index 694507e20..84cad4cc6 100644 --- a/sys/src/9/bcm/emmc.c +++ b/sys/src/9/bcm/emmc.c @@ -166,7 +166,6 @@ typedef struct Ctlr Ctlr; struct Ctlr { Rendez r; - Rendez cardr; int fastclock; ulong extclk; int appcmd; @@ -346,9 +345,9 @@ emmccmd(u32int cmd, u32int arg, u32int *resp) WR(Interrupt, i); } WR(Cmdtm, c); - now = m->ticks; + now = MACHP(0)->ticks; while(((i=r[Interrupt])&(Cmddone|Err)) == 0) - if(m->ticks-now > HZ) + if(MACHP(0)->ticks - now > HZ) break; if((i&(Cmddone|Err)) != Cmddone){ if((i&~(Err|Cardintr)) != Ctoerr) @@ -495,8 +494,6 @@ mmcinterrupt(Ureg*, void*) i = r[Interrupt]; if(i&(Datadone|Err)) wakeup(&emmc.r); - if(i&Cardintr) - wakeup(&emmc.cardr); WR(Irpten, r[Irpten] & ~i); } |