History log of /haiku/headers/private/shared/cpu_type.h
Revision Date Author Comments
# 146d6870 21-Sep-2022 Jérôme Duval <jerome.duval@gmail.com>

cpu_type.h: remove vendor string at any place

fix bug #17951

Change-Id: Icc0ac964ff9c6322612dadb459d28a97ac69e91a
Reviewed-on: https://review.haiku-os.org/c/haiku/+/5686
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>


# 357b9d3c 05-Sep-2020 Jérôme Duval <jerome.duval@gmail.com>

x86: identify Hygon vendor

it's a Zen-based CPU: rely on AMD support code.

Change-Id: Ia980a42457575bf8d1130d813310a285bf137691
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3217
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>


# f093894a 19-Jul-2019 Calvin Buckley <calvin@cmpct.info>

Fix Zen-based (family 0x8f) CPU naming

Previously, it identified all Zen CPUs as Ryzen 7. Since the model
and stepping information consist of microarchitecture information
and don't carry the model number, use the parse_amd based name,
which will remove any unnecessary details from the returned name.

Fixes #15153.

Change-Id: I1a20bf35a60b2fdd20d4cc90ec2dd95fd0e6439d
Reviewed-on: https://review.haiku-os.org/c/1634
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 6ee7bb4f 15-May-2019 Calvin Hill <calvin@hakobaito.co.uk>

cpu_type.h: Allow cpu_type functions to be accessible from C.

This allows cpu_type.h to be used in C-based software,
with the get_cpu_*() functions all accessible via C as well
as C++ code.

Tested changes with sysinfo, AboutHaiku and Pulse.

Change-Id: Ide87d8e3f2ba5f0f1890f385b1ac90c677bcc274
Reviewed-on: https://review.haiku-os.org/c/1453
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 5ffbe7d7 30-Mar-2019 Augustin Cavalier <waddlesplash@gmail.com>

Change all references to "__INTEL__" to "__i386__".

They are functionally identical, but the former is a BeOS/Haiku-specfic
macro that we include in the compiler specs, and the latter is defined
by GCC.


# c334ab21 03-May-2018 Alexander Coers <alexander.coers@gmx.de>

cpu_type.h: small fix for CPU detection

* since Core i5/Core i3 can have same model/family/stepping values
additional string evaluation is needed

This fixes #12695


# 8a9e1e0d 31-Dec-2017 Augustin Cavalier <waddlesplash@gmail.com>

Removal of non-Haiku target platform logic from build system (part 1.)

Following recent changes to use libroot_build on Haiku also, it is now
actually impossible to build Haiku components on non-Haiku platforms
(BeOS R5, Dan0, BONE, Zeta), so we can remove any logic related to this.

This is only the first part; still to be removed are:
* SetSubDirSupportedPlatformsBeOSCompatible
* HOST_PLATFORM_BEOS_COMPATIBLE
* TARGET_PLATFORM_BEOS_COMPATIBLE


# 63863c98 12-Mar-2017 Alexander von Gluck IV <kallisti5@unixzen.com>

cpu_type.h: Fix missing ;, sorry for spam


# 54066ddb 12-Mar-2017 Alexander von Gluck IV <kallisti5@unixzen.com>

OS.h: Add AMD Ryzen CPU name identification.

* Update cpuidtool.c to new post-smp rework name
calculation


# 3aeed660 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# 14919567 19-Jan-2014 Alexander von Gluck IV <kallisti5@unixzen.com>

kernel: Add more architecture code post-scheduler

* Fix incorrect cpu vendor name mapping
* Add additional CPU architectures
* Add additional CPU vendors
* Rework PowerPC arch_system_info passing
PVR back for cpu model


# 7c28f773 14-Jan-2014 Alexander von Gluck IV <kallisti5@unixzen.com>

system: Improve AMD CPU detection

* Several CPUID's were thrown into the Athlon 64
catch all. Add Sempron 64 and correct CPUIDs
solves #9553
* Add better AMD A-Series detection


# 1bc7045f 15-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel, libroot: Introduce new API for obtaining system info


# d04cbc3f 12-Apr-2013 Rene Gollent <anevilyak@gmail.com>

Add missing const.


# 928001ce 22-Mar-2013 Axel Dörfler <axeld@pinc-software.de>

Further tuned AMD CPU identifier parsing.

* Thanks to a list of 1384 entries with AMD CPU identifiers from Alex.


# df4d35e8 20-Mar-2013 Axel Dörfler <axeld@pinc-software.de>

Added a parse_amd() for CPU identification.

* This parses the reported CPU name, and tries to translate it to a normal
and concise identifier.
* For example, it will translate "AMD FX(tm)-8320 Eight-core Processor" into
"FX™ 8320" or "Dual Core AMD Opteron(tm) Processor 275 HE" into
"Opteron™ 275 HE".
* This means we can remove AMD strings for those models for which this
function produces useful results.


# 190423a6 20-Mar-2013 Alexander von Gluck IV <kallisti5@unixzen.com>

cpu_type: Add model 2 AMD FX CPU


# e03ee8ba 23-Nov-2012 Rene Gollent <anevilyak@gmail.com>

Add missing include.


# 836394ff 15-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

PPC: Fix build

* Add a default fallback case for each arch
* Resolves #8986


# 5c69b840 06-Sep-2012 Axel Dörfler <axeld@pinc-software.de>

Added fallback model string parsing for Intel CPUs.

* When we do not have a predefined model string, we now try to parse
the reported model string into something that is at least usable,
and should look comparable to what we have now.
* For models where the parsed type string is acceptable, we could remove
the predefined ones.


# 533f3bb4 30-Jul-2012 Alex Smith <alex@alex-smith.me.uk>

Support x86_64 in sysinfo.

Just changed all #ifdef __INTEL__ to __INTEL__ || __x86_64__, and
fixed all the printf format strings. The CPU detection code all
works the same.


# 548b1a49 04-Jun-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

cpuid: Rework AMD CPUID numbers

* If family is 0xF, we grab extended family and model
like Intel does
* Idenfify AMD cpu's more correctly


# 8ec0a4a3 10-Jul-2011 Philippe Saint-Pierre <stpere@gmail.com>

Cpu Identification :

* Don't return Core 2 Extreme as a fallback result, keep the more generic variant Core 2 for this.
* Test the presence of "Pentium" in the name and in that case, use that word to identify, despite
the family id/product name confusion.

Might fix #6136, #4427. needs testing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42405 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 95300274 02-Jan-2011 Ryan Leavengood <leavengood@gmail.com>

Apply patch from augiedoggie for #6258 which adds Athlon Phenom II's to the CPU
identification list.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40087 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8c6242d0 17-Apr-2010 Jérôme Duval <korli@users.berlios.de>

* revert previous commit


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36336 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c8d939ea 17-Apr-2010 Jérôme Duval <korli@users.berlios.de>

* hopefully display correctly Penryn based Pentium models (instead of Core 2 Extreme).
* fix a cache entry I introduced.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36332 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5fbfe93a 28-Mar-2010 Siarzhuk Zharski <zharik@gmx.li>

- CPU identification for 'Core i5 CPU M 430 @ 2.27' added. Reported by Evgeny Abdraimov.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35987 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 408a0aa2 10-Feb-2010 Siarzhuk Zharski <zharik@gmx.li>

Identification for "Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz" added.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35450 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7d05cf36 18-Oct-2009 Stephan Aßmus <superstippi@gmx.de>

Revert my additions to the patch from #4733, Core 2, Core 2 Duo and Core 2
Quad are all reported as "Core 2", because the CPU count is already reported
separately.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33646 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b0488dca 06-Oct-2009 Stephan Aßmus <superstippi@gmx.de>

Patch by "v" to fix ticket #4733, there are Core and Core 2 Celerons. I
enhanced it to also say Core 2 Quad and Core 2 Duo again, instead of just
Core 2. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33470 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 852e81f6 05-Oct-2009 Stephan Aßmus <superstippi@gmx.de>

Come to think of it, this is actually a multi-line if...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33464 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8ee28a00 05-Oct-2009 Stephan Aßmus <superstippi@gmx.de>

Fixed a style violation that I missed, thanks Axel.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33463 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b2e0606e 06-Oct-2009 Stephan Aßmus <superstippi@gmx.de>

Patch by "v" to distinguish between different processors with the same CPU-ID.
Slightly enhanced coding style by myself. Should fix ticket #3541. Thanks a
bunch!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33462 a95241bf-73f2-0310-859d-f6bbb57e9c96


# adc602a4 30-Sep-2009 imker <imker@nowhere.fake>

Model string for Core i7 920 @2.66 added.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33371 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 33941551 10-Apr-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

(Joerg Meyer) - Add Via processors IDs(Esther/Isaiah)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30106 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f0c9d3e7 03-Apr-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Path by Joerg Meyer
- Add identification for Efficeon CPUs



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29885 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dc08d5dc 04-Sep-2008 Jérôme Duval <korli@users.berlios.de>

added B_CPU_INTEL_ATOM, untested


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27326 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 27a76e1d 26-Jul-2008 Jérôme Duval <korli@users.berlios.de>

added amd phenom cpu type, untested


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26642 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 801fe71d 13-Apr-2008 Jérôme Duval <korli@users.berlios.de>

added amd geode lx cpu type, untested


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24960 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9c383d98 13-Apr-2008 Bruno G. Albuquerque <bga@bug-br.org.br>

Applied patch by Hervé W.

- Updated Intel processor IDs.
- Only take extended family/model into account on Intel processors.




git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24958 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7e11596a 29-Mar-2008 Jérôme Duval <korli@users.berlios.de>

added athlon 64 model 3


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24677 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7a66a9b8 21-Mar-2008 Bruno G. Albuquerque <bga@bug-br.org.br>

- Added support in system info for extended cpu family and model.
- Take extended family and model into account when generating the cpu
type and revision.
- Added Intel Core 2 Extreme to the cpu list.

Please review.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24509 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5b5dd5e2 02-Nov-2006 Jérôme Duval <korli@users.berlios.de>

0X1167 is an AMD Duron


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19181 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1e8adb7d 24-Aug-2006 Jérôme Duval <korli@users.berlios.de>

added core and core 2 ids


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18603 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 348c7214 16-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

Improved processor identification for some VIA C3 models.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15558 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 758b1d0e 12-Nov-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
Otherwise the an inner class with that name is considered as friend.
gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 74ef4bcd 11-Jul-2005 Jérôme Duval <korli@users.berlios.de>

added OS.h for completeness
last commit was wrong as easily noticed by Jack Burton :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13636 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ca383c42 11-Jul-2005 Jérôme Duval <korli@users.berlios.de>

we're now C friendly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13630 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a98b74b7 10-Jul-2005 Axel Dörfler <axeld@pinc-software.de>

Discarded unused variable "at" in get_rounded_cpu_speed().
Forgot to adapt the limit to switch to "GHz" in AboutHaiku.
Both bugs were reported by Herve W a.k.a. "V" - whatever
that means :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13571 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 26ca407b 09-Jul-2005 Axel Dörfler <axeld@pinc-software.de>

Moved the CPU speed "clearing" function from Pulse to cpu_type.h header.
It's now also used by AboutHaiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13569 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5258e67d 17-Apr-2005 Jérôme Duval <korli@users.berlios.de>

Courtesy of Olivier Coursiere (aka oco), based on documentation (feel free to check against real hardware)
Adds latests IDs from Intel docs
Adds some Sempron IDs
Renamed Athlon 64 to be consistent with Intel names
Adds IDs in cpu_type.h


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12429 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 72873ebe 30-Nov-2004 Axel Dörfler <axeld@pinc-software.de>

Extracted CPU identification out of Pulse to be used by Pulse and sysinfo.
Might be better placed in a source file, but sysinfo is currently built
very simple, and I was too lazy to change this :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10317 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 3aeed6607cd07762c0e709633c012b3a632dbad9 07-Aug-2014 Jérôme Duval <jerome.duval@gmail.com>

include strings.h where appriopriate...

instead or additionally to string.h, in preparation for functions move.
* moves str[n]casecmp() functions and others to strings.h.
* strings.h doesn't include string.h anymore.
* this solves #10949


# 14919567d15b4d07049c6f1ba3a5d18cb27bc8dd 19-Jan-2014 Alexander von Gluck IV <kallisti5@unixzen.com>

kernel: Add more architecture code post-scheduler

* Fix incorrect cpu vendor name mapping
* Add additional CPU architectures
* Add additional CPU vendors
* Rework PowerPC arch_system_info passing
PVR back for cpu model


# 7c28f7733231247e8b55e2e52f80d445deb8589c 14-Jan-2014 Alexander von Gluck IV <kallisti5@unixzen.com>

system: Improve AMD CPU detection

* Several CPUID's were thrown into the Athlon 64
catch all. Add Sempron 64 and correct CPUIDs
solves #9553
* Add better AMD A-Series detection


# 1bc7045fdfb85e6151d01c73669be19627c4783b 15-Dec-2013 Pawel Dziepak <pdziepak@quarnos.org>

kernel, libroot: Introduce new API for obtaining system info


# d04cbc3f3cedac7934e77f8773e8652128fe22ab 12-Apr-2013 Rene Gollent <anevilyak@gmail.com>

Add missing const.


# 928001cea9377cd844ed64bdfe7c8722044ef11d 22-Mar-2013 Axel Dörfler <axeld@pinc-software.de>

Further tuned AMD CPU identifier parsing.

* Thanks to a list of 1384 entries with AMD CPU identifiers from Alex.


# df4d35e837cc7ba09409fc0111031351385411df 20-Mar-2013 Axel Dörfler <axeld@pinc-software.de>

Added a parse_amd() for CPU identification.

* This parses the reported CPU name, and tries to translate it to a normal
and concise identifier.
* For example, it will translate "AMD FX(tm)-8320 Eight-core Processor" into
"FX™ 8320" or "Dual Core AMD Opteron(tm) Processor 275 HE" into
"Opteron™ 275 HE".
* This means we can remove AMD strings for those models for which this
function produces useful results.


# 190423a65660a7b4a3ad92c0a97a5fcfe2278d83 20-Mar-2013 Alexander von Gluck IV <kallisti5@unixzen.com>

cpu_type: Add model 2 AMD FX CPU


# e03ee8ba353ea8b007c4f3966ff057540e2decf9 23-Nov-2012 Rene Gollent <anevilyak@gmail.com>

Add missing include.


# 836394ffbf7964ab46d308fda7be90c5c9f6b06e 15-Sep-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

PPC: Fix build

* Add a default fallback case for each arch
* Resolves #8986


# 5c69b8405bd3e9289d6b77b2eacdfceb76e4cf82 06-Sep-2012 Axel Dörfler <axeld@pinc-software.de>

Added fallback model string parsing for Intel CPUs.

* When we do not have a predefined model string, we now try to parse
the reported model string into something that is at least usable,
and should look comparable to what we have now.
* For models where the parsed type string is acceptable, we could remove
the predefined ones.


# 533f3bb494fc873564146561b6b954168021c6d1 30-Jul-2012 Alex Smith <alex@alex-smith.me.uk>

Support x86_64 in sysinfo.

Just changed all #ifdef __INTEL__ to __INTEL__ || __x86_64__, and
fixed all the printf format strings. The CPU detection code all
works the same.


# 548b1a49889120dd46ef01d133a44b69d7659218 04-Jun-2012 Alexander von Gluck IV <kallisti5@unixzen.com>

cpuid: Rework AMD CPUID numbers

* If family is 0xF, we grab extended family and model
like Intel does
* Idenfify AMD cpu's more correctly


# 8ec0a4a37d01e059b073c90d40c8b7d24779c146 10-Jul-2011 Philippe Saint-Pierre <stpere@gmail.com>

Cpu Identification :

* Don't return Core 2 Extreme as a fallback result, keep the more generic variant Core 2 for this.
* Test the presence of "Pentium" in the name and in that case, use that word to identify, despite
the family id/product name confusion.

Might fix #6136, #4427. needs testing.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42405 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9530027447a2f479521a7ffe7beb9bb53fa011ce 02-Jan-2011 Ryan Leavengood <leavengood@gmail.com>

Apply patch from augiedoggie for #6258 which adds Athlon Phenom II's to the CPU
identification list.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40087 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8c6242d071750dbbb5d0f63306d38d7297cb98e7 17-Apr-2010 Jérôme Duval <korli@users.berlios.de>

* revert previous commit


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36336 a95241bf-73f2-0310-859d-f6bbb57e9c96


# c8d939eaa8a777f3b963362405e8110e1400ac7a 17-Apr-2010 Jérôme Duval <korli@users.berlios.de>

* hopefully display correctly Penryn based Pentium models (instead of Core 2 Extreme).
* fix a cache entry I introduced.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36332 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5fbfe93a98a6c9aa8ee6234c0709fe9ddda13165 28-Mar-2010 Siarzhuk Zharski <zharik@gmx.li>

- CPU identification for 'Core i5 CPU M 430 @ 2.27' added. Reported by Evgeny Abdraimov.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35987 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 408a0aa2f1686c44795c35761c25c054d24aedcd 10-Feb-2010 Siarzhuk Zharski <zharik@gmx.li>

Identification for "Intel(R) Core(TM) i7 CPU Q 720 @ 1.60GHz" added.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35450 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7d05cf36fc9b528bc03424d5778ca92d74d39465 18-Oct-2009 Stephan Aßmus <superstippi@gmx.de>

Revert my additions to the patch from #4733, Core 2, Core 2 Duo and Core 2
Quad are all reported as "Core 2", because the CPU count is already reported
separately.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33646 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b0488dca688c290144911fe9dfe0c216a13fb553 06-Oct-2009 Stephan Aßmus <superstippi@gmx.de>

Patch by "v" to fix ticket #4733, there are Core and Core 2 Celerons. I
enhanced it to also say Core 2 Quad and Core 2 Duo again, instead of just
Core 2. Thanks!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33470 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 852e81f6cb776ebcca932fa328e45d583dd5e29f 05-Oct-2009 Stephan Aßmus <superstippi@gmx.de>

Come to think of it, this is actually a multi-line if...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33464 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 8ee28a00beb4edcb957fb2fc3259d2dc0005d1d2 05-Oct-2009 Stephan Aßmus <superstippi@gmx.de>

Fixed a style violation that I missed, thanks Axel.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33463 a95241bf-73f2-0310-859d-f6bbb57e9c96


# b2e0606edcc88e087c7511f5943eea77fb99383a 06-Oct-2009 Stephan Aßmus <superstippi@gmx.de>

Patch by "v" to distinguish between different processors with the same CPU-ID.
Slightly enhanced coding style by myself. Should fix ticket #3541. Thanks a
bunch!


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33462 a95241bf-73f2-0310-859d-f6bbb57e9c96


# adc602a44b2ecc08eed2a4cdbbb40992940ff445 30-Sep-2009 imker <imker@nowhere.fake>

Model string for Core i7 920 @2.66 added.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33371 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 33941551de084a453bdae41afeebd14f551d3998 10-Apr-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

(Joerg Meyer) - Add Via processors IDs(Esther/Isaiah)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30106 a95241bf-73f2-0310-859d-f6bbb57e9c96


# f0c9d3e745c9457f8c2d85b4216f63d506a5e35b 03-Apr-2009 Oliver Ruiz Dorantes <oliver.ruiz.dorantes@gmail.com>

- Path by Joerg Meyer
- Add identification for Efficeon CPUs



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29885 a95241bf-73f2-0310-859d-f6bbb57e9c96


# dc08d5dc1e7a9652ff83df2b1c4d9245b361d6f8 04-Sep-2008 Jérôme Duval <korli@users.berlios.de>

added B_CPU_INTEL_ATOM, untested


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27326 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 27a76e1d73dbe2799649390adacdedddaed5ca13 26-Jul-2008 Jérôme Duval <korli@users.berlios.de>

added amd phenom cpu type, untested


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26642 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 801fe71d43b571f9c909b8f029d3cb5f620c3517 13-Apr-2008 Jérôme Duval <korli@users.berlios.de>

added amd geode lx cpu type, untested


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24960 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 9c383d986769df80f4e772ea42329df28a4dd787 13-Apr-2008 Bruno G. Albuquerque <bga@bug-br.org.br>

Applied patch by Hervé W.

- Updated Intel processor IDs.
- Only take extended family/model into account on Intel processors.




git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24958 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7e11596a27b62f8a4a83e0438160d9db94808ac6 29-Mar-2008 Jérôme Duval <korli@users.berlios.de>

added athlon 64 model 3


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24677 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 7a66a9b8e476624da754a94c071f94d436408a7a 21-Mar-2008 Bruno G. Albuquerque <bga@bug-br.org.br>

- Added support in system info for extended cpu family and model.
- Take extended family and model into account when generating the cpu
type and revision.
- Added Intel Core 2 Extreme to the cpu list.

Please review.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24509 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5b5dd5e24cf0e39bdd82081a1efc7d4c7c4cba7b 02-Nov-2006 Jérôme Duval <korli@users.berlios.de>

0X1167 is an AMD Duron


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19181 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1e8adb7d892e8082415b3d0d632831896a6b4210 24-Aug-2006 Jérôme Duval <korli@users.berlios.de>

added core and core 2 ids


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18603 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 348c7214f5f9fd58c5f346615f3c07314e623aa8 16-Dec-2005 Axel Dörfler <axeld@pinc-software.de>

Improved processor identification for some VIA C3 models.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15558 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 758b1d0e05fe1042cce6e00d194a147802d4f9be 12-Nov-2005 Ingo Weinhold <ingo_weinhold@gmx.de>

Fixes that make Haiku build with gcc 4. Mainly out of the following
categories:
* Missing includes (like <stdlib.h> and <string.h>).
* Linking against $(TARGET_LIBSTDC++) instead of libstdc++.r4.so.
* Local variables shadowing parameters.
* Default parameters in function definitions (as opposed to function
declarations).
* All C++ stuff (nothrow, map, set, vector, min, max,...) must be imported
explicitly from the std:: namespace now.
* "new (sometype)[...]" must read "new sometype[...]", even if sometype is
something like "const char *".
* __FUNCTION__ is no longer a string literal (but a string expression), i.e.
'printf(__FUNCTION__ ": ...\n")' is invalid code.
* A type cast results in a non-lvalue. E.g. "(char *)buffer += bytes"
is an invalid expression.
* "friend class SomeClass" only works when SomeClass is known before.
Otherwise the an inner class with that name is considered as friend.
gcc 4 is much pickier about scopes.
* gcc 4 is generally stricter with respect to type conversions in C.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14878 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 74ef4bcdc4ed9c7d2db760c757508582fe27db75 11-Jul-2005 Jérôme Duval <korli@users.berlios.de>

added OS.h for completeness
last commit was wrong as easily noticed by Jack Burton :)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13636 a95241bf-73f2-0310-859d-f6bbb57e9c96


# ca383c429e788541ec55466e48d96a8bdd48976e 11-Jul-2005 Jérôme Duval <korli@users.berlios.de>

we're now C friendly


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13630 a95241bf-73f2-0310-859d-f6bbb57e9c96


# a98b74b72e184d69239468a1927ca558379cb4bb 10-Jul-2005 Axel Dörfler <axeld@pinc-software.de>

Discarded unused variable "at" in get_rounded_cpu_speed().
Forgot to adapt the limit to switch to "GHz" in AboutHaiku.
Both bugs were reported by Herve W a.k.a. "V" - whatever
that means :-)


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13571 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 26ca407bfc94336678258a2151ff0f92ca449021 09-Jul-2005 Axel Dörfler <axeld@pinc-software.de>

Moved the CPU speed "clearing" function from Pulse to cpu_type.h header.
It's now also used by AboutHaiku.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13569 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 5258e67dff4b6c5272ebb54b4341c09f219d0fce 17-Apr-2005 Jérôme Duval <korli@users.berlios.de>

Courtesy of Olivier Coursiere (aka oco), based on documentation (feel free to check against real hardware)
Adds latests IDs from Intel docs
Adds some Sempron IDs
Renamed Athlon 64 to be consistent with Intel names
Adds IDs in cpu_type.h


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12429 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 72873ebe36f02920dcf0de3128d7c0af1910d611 30-Nov-2004 Axel Dörfler <axeld@pinc-software.de>

Extracted CPU identification out of Pulse to be used by Pulse and sysinfo.
Might be better placed in a source file, but sysinfo is currently built
very simple, and I was too lazy to change this :-)


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10317 a95241bf-73f2-0310-859d-f6bbb57e9c96