[CFR] Replacing while loops with proper division and multiplication

2015-06-05 Thread Hans Petter Selasky
Hi, I was going through some timer code and found some unnecessary while loops in kern/kern_clocksource.c . I added some prints and found that during boot, "runs" can exceed 2000, while during regular usage runs is typically 1. Do you think it is worth to convert these loops into division an

FreeBSD_HEAD-tests - Build #1083 - Fixed

2015-06-05 Thread jenkins-admin
FreeBSD_HEAD-tests - Build #1083 - Fixed: Check console output at https://jenkins.freebsd.org/job/FreeBSD_HEAD-tests/1083/ to view the results. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To uns

Re: [CFR] Replacing while loops with proper division and multiplication

2015-06-05 Thread Konstantin Belousov
On Fri, Jun 05, 2015 at 09:09:26AM +0200, Hans Petter Selasky wrote: > Hi, > > I was going through some timer code and found some unnecessary while > loops in kern/kern_clocksource.c . > > I added some prints and found that during boot, "runs" can exceed 2000, > while during regular usage runs

converted ural(4) Was: [Testers needed!] WiFi drivers changes

2015-06-05 Thread Gleb Smirnoff
Hi Kevin, you signed up as testers of ural(4). I have converted ural(4) and uploaded new patch at: https://reviews.freebsd.org/D2655 Please try, report and update the project page. https://wiki.freebsd.org/projects/ifnet/net80211 Thanks a lot for your help. -- Totus tuus, Glebius.

FreeBSD_HEAD_i386 - Build #243 - Failure

2015-06-05 Thread jenkins-admin
FreeBSD_HEAD_i386 - Build #243 - Failure: Check console output at https://jenkins.freebsd.org/job/FreeBSD_HEAD_i386/243/ to view the results. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsub

FreeBSD_HEAD - Build #2830 - Failure

2015-06-05 Thread jenkins-admin
FreeBSD_HEAD - Build #2830 - Failure: Check console output at https://jenkins.freebsd.org/job/FreeBSD_HEAD/2830/ to view the results. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe,

Re: [CFR] Replacing while loops with proper division and multiplication

2015-06-05 Thread Neel Natu
Hi Hans, On Fri, Jun 5, 2015 at 12:09 AM, Hans Petter Selasky wrote: > Hi, > > I was going through some timer code and found some unnecessary while loops > in kern/kern_clocksource.c . > > I added some prints and found that during boot, "runs" can exceed 2000, > while during regular usage runs is

Re: [CFR] Replacing while loops with proper division and multiplication

2015-06-05 Thread Hans Petter Selasky
On 06/05/15 20:31, Neel Natu wrote: - runs = 0; >>- while (now >= state->nexthard) { >>- state->nexthard += tick_sbt; >>- runs++; >>- } >>- if (runs) { >>+ runs = (now - state->nexthard) / tick_sbt; >>+ if (runs > 0) { >>+

Re: [CFR] Replacing while loops with proper division and multiplication

2015-06-05 Thread Neel Natu
Hi Hans, On Fri, Jun 5, 2015 at 11:53 AM, Hans Petter Selasky wrote: > On 06/05/15 20:31, Neel Natu wrote: - runs = 0; >>- while (now >= state->nexthard) { >>- state->nexthard += tick_sbt; >>- runs++; >>- } >>-

FreeBSD_HEAD - Build #2831 - Fixed

2015-06-05 Thread jenkins-admin
FreeBSD_HEAD - Build #2831 - Fixed: Check console output at https://jenkins.freebsd.org/job/FreeBSD_HEAD/2831/ to view the results. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubscribe, se

FreeBSD_HEAD_i386 - Build #244 - Fixed

2015-06-05 Thread jenkins-admin
FreeBSD_HEAD_i386 - Build #244 - Fixed: Check console output at https://jenkins.freebsd.org/job/FreeBSD_HEAD_i386/244/ to view the results. ___ freebsd-current@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-current To unsubsc