/* do_s2io_chk_alarm_bit - Check for alarm and incrment the counter @value: alarm bits @addr: address value @cnt: counter variable Description: Check for alarm and increment the counter Return Value: 1 - if alarm bit set 0 - if alarm bit is not set  */
static int do_s2io_chk_alarm_bit(u64 value, void __iomem *addr, unsigned long long *cnt)
/* do_s2io_chk_alarm_bit - Check for alarm and incrment the counter @value: alarm bits @addr: address value @cnt: counter variable Description: Check for alarm and increment the counter Return Value: 1 - if alarm bit set 0 - if alarm bit is not set  */
static int do_s2io_chk_alarm_bit(u64 value, void __iomem *addr, unsigned long long *cnt)
{
	u64 val64;
	val64 = readq(addr);
	if (val64 & value) {
		writeq(val64, addr);
		(*cnt)++;
		return 1;
	}
	return 0;
}