static unsigned int mon_irq_status(struct bwmon *m) { u32 mval, gval; mval = readl_relaxed(MON_INT_STATUS(m)), gval = readl_relaxed(GLB_INT_STATUS(m)); dev_dbg(m->dev, "IRQ status p:%x, g:%x\n", mval, gval); return mval; }
static int mon_irq_status(struct bwmon *m) { return readl_relaxed(MON_INT_STATUS(m)) & 0x1; }