> +static unsigned handle_frequent_errors(struct ipath_devdata *dd,
> + ipath_err_t errs, char msg[512],
> + int *noprint)
> +{
> + cycles_t nc;
> + static cycles_t nextmsg_time;
> + static unsigned nmsgs, supp_msgs;
> +
> + /*
> + * throttle back "fast" messages to no more than 10 per 5 seconds
> + * (1.4-2GHz clock). This isn't perfect, but it's a reasonable
> + * heuristic. If we get more than 10, give a 5x longer delay
> + */
Could this be replaced by printk_ratelimit()?
- R.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]