Module Name: src Committed By: msaitoh Date: Fri Nov 15 08:47:55 UTC 2013
Modified Files: src/sys/arch/x86/acpi: acpi_cpu_md.c src/sys/arch/x86/include: specialreg.h src/sys/arch/x86/pci: amdtemp.c src/sys/arch/x86/x86: coretemp.c cpu.c cpu_topology.c cpu_ucode_amd.c cpu_ucode_intel.c est.c identcpu.c intel_busclock.c lapic.c odcm.c patch.c powernow.c tprof_amdpmi.c tprof_pmi.c tsc.c viac7temp.c src/usr.sbin/cpuctl/arch: i386.c Log Message: Modify some macros and add some new macros for CPU family and model to reduce code duplication and to avoid bug. CPUID_TO_STEPPING(cpuid) (not changed) CPUID_TO_FAMILY(cpuid) (new) CPUID_TO_MODEL(cpuid) (new) Return the display family and the display model. The macro names are the same as FreeBSD. CPUID_TO_BASEFAMILY(cpuid) (The old name was CPUID2FAMILY) CPUID_TO_BASEMODEL(cpuid) (The old name was CPUID2MODEL) Only for the base field. CPUID_TO_EXTFAMILY(cpuid) (The old name was CPUID2EXTFAMILY) CPUID_TO_EXTMODEL(cpuid) (The old name was CPUID2EXTMODEL) Only for the extended field. See http://mail-index.netbsd.org/port-amd64/2013/11/12/msg001978.html To generate a diff of this commit: cvs rdiff -u -r1.72 -r1.73 src/sys/arch/x86/acpi/acpi_cpu_md.c cvs rdiff -u -r1.71 -r1.72 src/sys/arch/x86/include/specialreg.h cvs rdiff -u -r1.17 -r1.18 src/sys/arch/x86/pci/amdtemp.c cvs rdiff -u -r1.30 -r1.31 src/sys/arch/x86/x86/coretemp.c cvs rdiff -u -r1.105 -r1.106 src/sys/arch/x86/x86/cpu.c cvs rdiff -u -r1.7 -r1.8 src/sys/arch/x86/x86/cpu_topology.c \ src/sys/arch/x86/x86/powernow.c cvs rdiff -u -r1.6 -r1.7 src/sys/arch/x86/x86/cpu_ucode_amd.c \ src/sys/arch/x86/x86/viac7temp.c cvs rdiff -u -r1.3 -r1.4 src/sys/arch/x86/x86/cpu_ucode_intel.c \ src/sys/arch/x86/x86/tprof_amdpmi.c cvs rdiff -u -r1.27 -r1.28 src/sys/arch/x86/x86/est.c cvs rdiff -u -r1.37 -r1.38 src/sys/arch/x86/x86/identcpu.c cvs rdiff -u -r1.16 -r1.17 src/sys/arch/x86/x86/intel_busclock.c cvs rdiff -u -r1.46 -r1.47 src/sys/arch/x86/x86/lapic.c cvs rdiff -u -r1.2 -r1.3 src/sys/arch/x86/x86/odcm.c cvs rdiff -u -r1.21 -r1.22 src/sys/arch/x86/x86/patch.c cvs rdiff -u -r1.12 -r1.13 src/sys/arch/x86/x86/tprof_pmi.c cvs rdiff -u -r1.32 -r1.33 src/sys/arch/x86/x86/tsc.c cvs rdiff -u -r1.49 -r1.50 src/usr.sbin/cpuctl/arch/i386.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.