Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Mar 2011 21:20:18 +0000 (UTC)
From:      Adrian Chadd <adrian@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/dev/ath ah_osdep.c src/sys/dev/ath/ath_hal ah_internal.h
Message-ID:  <201103052120.p25LKTxA019317@repoman.freebsd.org>

index | next in thread | raw e-mail

adrian      2011-03-05 21:20:18 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/ath          ah_osdep.c 
    sys/dev/ath/ath_hal  ah_internal.h 
  Log:
  SVN rev 219315 on 2011-03-05 21:20:18Z by adrian
  
  Change HALDEBUG() to be a macro that conditionally calls the debug output routine.
  
  The earlier way of doing debugging would evaluate the function parameters
  before calling the HALDEBUG. In the case of detailed register debugging
  would mean a -lot- of unneeded register IO and other stuff was going on.
  
  This method evaluates the ath_hal_debug variable before the function
  parameters are evaluated, drastically reducing the amount of overhead
  enabling HAL debugging during compilation.
  
  Revision  Changes    Path
  1.14      +3 -3      src/sys/dev/ath/ah_osdep.c
  1.24      +8 -1      src/sys/dev/ath/ath_hal/ah_internal.h


help

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