int gru_wait_proc(void *cb) { struct gru_control_block_status *gen = (void *)cb; int ret; ret = gru_wait_idle_or_exception(gen); if (ret == CBS_EXCEPTION) ret = gru_retry_exception(cb); rmb(); return ret; }
int gru_check_status_proc(void *cb) { struct gru_control_block_status *gen = (void *)cb; int ret; ret = gen->istatus; if (ret != CBS_EXCEPTION) return ret; return gru_retry_exception(cb); }