diff options
| author | wdenk <wdenk> | 2003-06-27 21:31:46 +0000 | 
|---|---|---|
| committer | wdenk <wdenk> | 2003-06-27 21:31:46 +0000 | 
| commit | 8bde7f776c77b343aca29b8c7b58464d915ac245 (patch) | |
| tree | 20f1fd99975215e7c658454a15cdb4ed4694e2d4 /board/MAI/bios_emulator/scitech/src/pm/ztimer.c | |
| parent | 993cad9364c6b87ae429d1ed1130d8153f6f027e (diff) | |
| download | olio-uboot-2014.01-8bde7f776c77b343aca29b8c7b58464d915ac245.tar.xz olio-uboot-2014.01-8bde7f776c77b343aca29b8c7b58464d915ac245.zip | |
* Code cleanup:LABEL_2003_06_27_2340
  - remove trailing white space, trailing empty lines, C++ comments, etc.
  - split cmd_boot.c (separate cmd_bdinfo.c and cmd_load.c)
* Patches by Kenneth Johansson, 25 Jun 2003:
  - major rework of command structure
    (work done mostly by Michal Cendrowski and Joakim Kristiansen)
Diffstat (limited to 'board/MAI/bios_emulator/scitech/src/pm/ztimer.c')
| -rw-r--r-- | board/MAI/bios_emulator/scitech/src/pm/ztimer.c | 39 | 
1 files changed, 19 insertions, 20 deletions
| diff --git a/board/MAI/bios_emulator/scitech/src/pm/ztimer.c b/board/MAI/bios_emulator/scitech/src/pm/ztimer.c index 35081e9a3..5acf7b1f0 100644 --- a/board/MAI/bios_emulator/scitech/src/pm/ztimer.c +++ b/board/MAI/bios_emulator/scitech/src/pm/ztimer.c @@ -104,12 +104,12 @@ void ZAPI ZTimerInitExt(      ibool accurate)  {      if (cpuSpeed == -1) { -        __ZTimerInit(); +	__ZTimerInit();  #ifdef  __INTEL__ -        cpuSpeed = CPU_getProcessorSpeedInHZ(accurate); -        haveRDTSC = CPU_haveRDTSC() && (cpuSpeed > 0); +	cpuSpeed = CPU_getProcessorSpeedInHZ(accurate); +	haveRDTSC = CPU_haveRDTSC() && (cpuSpeed > 0);  #endif -        } +	}  }  /**************************************************************************** @@ -174,11 +174,11 @@ void ZAPI LZTimerOnExt(  {  #ifdef  __INTEL__      if (haveRDTSC) { -        _CPU_readTimeStamp(&tm->start); -        } +	_CPU_readTimeStamp(&tm->start); +	}      else  #endif -        __LZTimerOn(tm); +	__LZTimerOn(tm);  }  /**************************************************************************** @@ -210,13 +210,13 @@ ulong ZAPI LZTimerLapExt(      CPU_largeInteger    tmLap,tmCount;      if (haveRDTSC) { -        _CPU_readTimeStamp(&tmLap); -        _CPU_diffTime64(&tm->start,&tmLap,&tmCount); -        return _CPU_calcMicroSec(&tmCount,cpuSpeed); -        } +	_CPU_readTimeStamp(&tmLap); +	_CPU_diffTime64(&tm->start,&tmLap,&tmCount); +	return _CPU_calcMicroSec(&tmCount,cpuSpeed); +	}      else  #endif -        return __LZTimerLap(tm); +	return __LZTimerLap(tm);  }  /**************************************************************************** @@ -244,11 +244,11 @@ void ZAPI LZTimerOffExt(  {  #ifdef  __INTEL__      if (haveRDTSC) { -        _CPU_readTimeStamp(&tm->end); -        } +	_CPU_readTimeStamp(&tm->end); +	}      else  #endif -        __LZTimerOff(tm); +	__LZTimerOff(tm);  }  /**************************************************************************** @@ -278,12 +278,12 @@ ulong ZAPI LZTimerCountExt(      CPU_largeInteger    tmCount;      if (haveRDTSC) { -        _CPU_diffTime64(&tm->start,&tm->end,&tmCount); -        return _CPU_calcMicroSec(&tmCount,cpuSpeed); -        } +	_CPU_diffTime64(&tm->start,&tm->end,&tmCount); +	return _CPU_calcMicroSec(&tmCount,cpuSpeed); +	}      else  #endif -        return __LZTimerCount(tm); +	return __LZTimerCount(tm);  }  /**************************************************************************** @@ -514,4 +514,3 @@ ULZReadTime, ULZElapsedTime, ULZTimerCount  void ZAPI ULZTimerResolution(  	ulong *resolution)  { *resolution = ULZTIMER_RESOLUTION; } - |