git: 74f80bc1af2f - main - coretemp(4): Switch to smp_rendezvous_cpus().

Alexander Motin mav at FreeBSD.org
Mon Aug 2 16:16:05 UTC 2021


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


More information about the dev-commits-src-all mailing list