forked from 0ad/0ad
janwas
bd0d0c0026
cpu: avoid measuring cpu freq if possible ia32: cleanup, fix #cores detection on AMD (they're incompatible, *sigh*), add ia32_Generation wcpu: remove IsThrottling code (clunky and not necessary - we rely on ia32's feature bit detection instead) counter: move whrt's counter create code here qpc: update comment tsc: finalize IsSafe implementation, remove per-thread stuff (since it cannot be made to work) whrt: cleanup, remove calibration code (no longer needed) This was SVN commit r5121.
22 lines
568 B
C
22 lines
568 B
C
/**
|
|
* =========================================================================
|
|
* File : wcpu.h
|
|
* Project : 0 A.D.
|
|
* Description : Windows backend for CPU related code
|
|
* =========================================================================
|
|
*/
|
|
|
|
// license: GPL; see lib/license.txt
|
|
|
|
#ifndef INCLUDED_WCPU
|
|
#define INCLUDED_WCPU
|
|
|
|
#include "lib/sysdep/cpu.h"
|
|
|
|
extern uint wcpu_NumProcessors();
|
|
extern double wcpu_ClockFrequency();
|
|
|
|
extern LibError wcpu_CallByEachCPU(CpuCallback cb, void* param);
|
|
|
|
#endif // #ifndef INCLUDED_WCPU
|