blob: 69e1ed4fcad71d5b3329a29a00c7b7feeb7e6864 [file] [log] [blame]
/**
* @file cpu_type.c
* CPU determination
*
* @remark Copyright 2002 OProfile authors
* @remark Read the file COPYING
*
* @author John Levon
* @author Philippe Elie
* @author Will Cohen
*/
#include "oprofile.h"
EXPORT_NO_SYMBOLS;
__init op_cpu get_cpu_type(void)
{
__u8 family = local_cpu_data->family;
/* FIXME: There should be a bit more checking here. */
switch (family) {
/* Itanium */
case 0x07:
return CPU_IA64_1;
break;
/* Itanium 2 */
case 0x1f:
return CPU_IA64_2;
break;
}
/* Go for the basic generic IA64 */
return CPU_IA64;
}