Message ID | 20170814070849.20986-24-jgross@suse.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/xen/common/core_parking.c b/xen/common/core_parking.c index de269e06c2..b07a157ff9 100644 --- a/xen/common/core_parking.c +++ b/xen/common/core_parking.c @@ -41,14 +41,16 @@ static enum core_parking_controller { PERFORMANCE_FIRST } core_parking_controller = POWER_FIRST; -static void __init setup_core_parking_option(char *str) +static int __init setup_core_parking_option(char *str) { if ( !strcmp(str, "power") ) core_parking_controller = POWER_FIRST; else if ( !strcmp(str, "performance") ) core_parking_controller = PERFORMANCE_FIRST; else - return; + return -EINVAL; + + return 0; } custom_param("core_parking", setup_core_parking_option);