mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
x86: use alternative_input() in cache_flush()
There's no point using alternative_io() when there are no outputs. While there drop the unnecessary semicolon after "ds". No functional change. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
This commit is contained in:
1 parent
db70a52f75
commit
b42cf31d11
1 file changed
+4
-5
@@ -286,11 +286,10 @@ void cache_flush(const void *addr, unsigned int size)
|
||||
* + prefix than a clflush + nop, and hence the prefix is added instead
|
||||
* of letting the alternative framework fill the gap by appending nops.
|
||||
*/
|
||||
alternative_io("ds; clflush %[p]",
|
||||
"data16 clflush %[p]", /* clflushopt */
|
||||
X86_FEATURE_CLFLUSHOPT,
|
||||
/* no outputs */,
|
||||
[p] "m" (*(const char *)(addr)));
|
||||
alternative_input("ds clflush %[p]",
|
||||
"data16 clflush %[p]", /* clflushopt */
|
||||
X86_FEATURE_CLFLUSHOPT,
|
||||
[p] "m" (*(const char *)(addr)));
|
||||
}
|
||||
|
||||
alternative_2("",
|
||||
|
||||