| Summary: | Amarok gives HT-warning when run on an Athlon X2 processor | ||
|---|---|---|---|
| Product: | [Applications] amarok | Reporter: | Sven Lankes <sl-bugskde> |
| Component: | general | Assignee: | Amarok Bugs <amarok-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 1.3.3 | ||
| Target Milestone: | --- | ||
| Platform: | Gentoo Packages | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | /proc/cpuinfo showing ht-flag | ||
|
Description
Sven Lankes
2005-10-10 21:07:21 UTC
Created attachment 12939 [details]
/proc/cpuinfo showing ht-flag
SVN commit 470652 by markey:
Don't show a HyperThreading warning for Athlon 64 X2 CPU.
Testing welcome.
BUG: 114190
M +1 -0 ChangeLog
M +6 -0 src/app.cpp
--- trunk/extragear/multimedia/amarok/ChangeLog #470651:470652
@@ -21,6 +21,7 @@
icon, respectively.
BUGFIXES:
+ * Don't show a HyperThreading warning for Athlon 64 X2 CPU. (BR 114190)
* With Random Mode enabled and Repeat Playlist disabled, when it got to
the last track, it would play it a second time and then keep on playing
other tracks, instead of just stopping.
--- trunk/extragear/multimedia/amarok/src/app.cpp #470651:470652
@@ -154,6 +154,12 @@
QFile cpuinfo( "/proc/cpuinfo" );
if ( cpuinfo.open( IO_ReadOnly ) ) {
while ( cpuinfo.readLine( line, 20000 ) != -1 ) {
+ if ( line.startsWith( "vendor_id" ) && line.contains( "AuthenticAMD" ) ) {
+ // Special case for AMD CPU's like the Athlon 64 X2, which reports a bogus
+ // HT flag. @see BUG 114190
+ cpuCount = 1;
+ break;
+ }
if ( line.startsWith( "flags" ) ) {
const QString flagsLine = line.section( ":", 1 );
const QStringList flags = QStringList::split( " ", flagsLine );
|