Commit 68af7d9f authored by Michael Quigley's avatar Michael Quigley
Browse files

updated RPC test to check for USE_MWAIT before testing to see if processor has mwait

parent 6c5821ab
......@@ -63,12 +63,18 @@ static void setup_tests(void)
static int __init rpc_init(void)
{
setup_tests();
int ret = 0;
#if defined(USE_MWAIT)
if (!this_cpu_has(X86_FEATURE_MWAIT))
{
printk(KERN_ERR "CPU does not have X86_FEATURE_MWAIT ");
return -EPERM;
}
#endif
setup_tests();
return 0;
return ret;
}
static int __exit rpc_rmmod(void)
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment