Re: [PATCH] X86: cpu_debug support for VIA / Centaur CPU's

From: H. Peter Anvin
Date: Wed Jun 10 2009 - 18:31:56 EST


Michael S. Zick wrote:
>> yes, of course - i meant the /debug/x86/cpu/* behavior: it should
>> either result zeroes, or should return -EINVAL. (probably the
>> latter)
>>
>
> Return zeroes - same as hardware case for bits which can't be set.
> Returning -EINVAL might match a specific bit pattern caller is looking for.
>

It should be -EIO anyway, which is what /dev/cpu/*/msr does.

-hpa
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/