@@ -1870,7 +1870,7 @@ int hwdom_pit_access(struct ioreq *ioreq)
* tsc=skewed: Assume TSCs are individually reliable, but skewed across CPUs.
* tsc=stable:socket: Assume TSCs are reliable across sockets.
*/
-static void __init tsc_parse(const char *s)
+static int __init tsc_parse(const char *s)
{
if ( !strcmp(s, "unstable") )
{
@@ -1882,6 +1882,10 @@ static void __init tsc_parse(const char *s)
setup_clear_cpu_cap(X86_FEATURE_TSC_RELIABLE);
else if ( !strcmp(s, "stable:socket") )
tsc_flags |= TSC_RELIABLE_SOCKET;
+ else
+ return -EINVAL;
+
+ return 0;
}
custom_param("tsc", tsc_parse);
Modify the custom parameter parsing routines in: xen/arch/x86/time.c to indicate whether the parameter value was parsed successfully. Cc: Jan Beulich <jbeulich@suse.com> Cc: Andrew Cooper <andrew.cooper3@citrix.com> Signed-off-by: Juergen Gross <jgross@suse.com> --- xen/arch/x86/time.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)