Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Jun 2002 23:21:20 -0700 (PDT)
From:      Peter Wemm <peter@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/alpha/include runq.h src/sys/i386/include runq.h src/sys/ia64/include runq.h src/sys/powerpc/include runq.h src/sys/sparc64/include runq.h src/sys/kern kern_switch.c
Message-ID:  <200206200621.g5K6LKR03103@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
peter       2002/06/19 23:21:20 PDT

  Modified files:
    sys/alpha/include    runq.h 
    sys/i386/include     runq.h 
    sys/ia64/include     runq.h 
    sys/powerpc/include  runq.h 
    sys/sparc64/include  runq.h 
    sys/kern             kern_switch.c 
  Log:
  Move the "- 1" into the RQB_FFS(mask) macro itself so that
  implementations can provide a base zero ffs function if they wish.
  This changes
    #define RQB_FFS(mask) (ffs64(mask))
    foo = RQB_FFS(mask) - 1;
  to
    #define RQB_FFS(mask) (ffs64(mask) - 1)
    foo = RQB_FFS(mask);
  On some platforms we can get the "- 1" for free, eg: those that use the
  C code for ffs64().
  
  Reviewed by:    jake (in principle)
  
  Revision  Changes    Path
  1.2       +1 -1      src/sys/alpha/include/runq.h
  1.2       +1 -1      src/sys/i386/include/runq.h
  1.2       +1 -1      src/sys/ia64/include/runq.h
  1.28      +1 -2      src/sys/kern/kern_switch.c
  1.2       +1 -1      src/sys/powerpc/include/runq.h
  1.2       +1 -1      src/sys/sparc64/include/runq.h

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206200621.g5K6LKR03103>