Date: Sat, 28 Mar 2020 16:26:47 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r359396 - head/sys/dev/sound/pci/hda Message-ID: <202003281626.02SGQltE071852@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sat Mar 28 16:26:47 2020 New Revision: 359396 URL: https://svnweb.freebsd.org/changeset/base/359396 Log: hdaa: remove verbosity from the normal driver operations. If hdaa is used in polling mode, it logs each change to the poll interval under bootverbose, which makes it unusable (slow). These messages are arguably useless or are a debugging leftovers at best. Sponsored by: The FreeBSD Foundation MFC after: 3 days Modified: head/sys/dev/sound/pci/hda/hdac.c Modified: head/sys/dev/sound/pci/hda/hdac.c ============================================================================== --- head/sys/dev/sound/pci/hda/hdac.c Sat Mar 28 15:35:47 2020 (r359395) +++ head/sys/dev/sound/pci/hda/hdac.c Sat Mar 28 16:26:47 2020 (r359396) @@ -1413,21 +1413,11 @@ hdac_poll_reinit(struct hdac_softc *sc) pollticks >>= 1; if (pollticks > hz) pollticks = hz; - if (pollticks < 1) { - HDA_BOOTVERBOSE( - device_printf(sc->dev, - "poll interval < 1 tick !\n"); - ); + if (pollticks < 1) pollticks = 1; - } if (min > pollticks) min = pollticks; } - HDA_BOOTVERBOSE( - device_printf(sc->dev, - "poll interval %d -> %d ticks\n", - sc->poll_ival, min); - ); sc->poll_ival = min; if (min == 1000000) callout_stop(&sc->poll_callout);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202003281626.02SGQltE071852>