mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[PATCH] cpufreq: speedstep-smi asm fix
Fix bug identified by Linus Torvalds <torvalds@osdl.org>: the `out' instruction depends upon the state of memory_data[], so we need to tell gcc that before executing it. (The opcode, not gcc). Fixes http://bugzilla.kernel.org/show_bug.cgi?id=5553 Thanks to Antonio Ospite <ospite@studenti.unina.it> for testing. Cc: Dave Jones <davej@codemonkey.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
1e8c573933
commit
f081a529f8
1 changed files with 3 additions and 1 deletions
|
@ -75,7 +75,9 @@ static int speedstep_smi_ownership (void)
|
|||
__asm__ __volatile__(
|
||||
"out %%al, (%%dx)\n"
|
||||
: "=D" (result)
|
||||
: "a" (command), "b" (function), "c" (0), "d" (smi_port), "D" (0), "S" (magic)
|
||||
: "a" (command), "b" (function), "c" (0), "d" (smi_port),
|
||||
"D" (0), "S" (magic)
|
||||
: "memory"
|
||||
);
|
||||
|
||||
dprintk("result is %x\n", result);
|
||||
|
|
Loading…
Reference in a new issue