From: Philippe E. <ph...@us...> - 2002-09-15 02:36:33
|
Update of /cvsroot/oprofile/oprofile/module/x86 In directory usw-pr-cvs1:/tmp/cvs-serv9547/module/x86 Modified Files: cpu_type.c Log Message: Allow to force RTC mode, as suggested by ... Will ? regards, Phil Index: cpu_type.c =================================================================== RCS file: /cvsroot/oprofile/oprofile/module/x86/cpu_type.c,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- cpu_type.c 7 Sep 2002 18:19:39 -0000 1.5 +++ cpu_type.c 15 Sep 2002 02:36:31 -0000 1.6 @@ -13,11 +13,19 @@ EXPORT_NO_SYMBOLS; +MODULE_PARM(force_rtc, "i"); +MODULE_PARM_DESC(force_rtc, "force RTC mode."); +static int force_rtc; + __init op_cpu get_cpu_type(void) { __u8 vendor = current_cpu_data.x86_vendor; __u8 family = current_cpu_data.x86; __u8 model = current_cpu_data.x86_model; + + if (force_rtc) { + return CPU_RTC; + } switch (vendor) { case X86_VENDOR_AMD: |