On 31.07.2021 08:48, Konstantin Belousov wrote:
>> +static void
>> +coretemp_wrmsr(void *arg)
>> +{
>> + struct coretemp_args *args = arg;
>> +
>> + wrmsr(args->msr, args->val);
>> +}
> We have x86_msr_op(). It covers coretemp_wrmsr(), and with slight
> change of the interface would also handle the functionality of
> coretemp_rdmsr().
As I see x86_msr_op() is tuned for MSR modification on all CPUs, while
this code touches one CPU at a time.
--
Alexander Motin
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"