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

Konstantin Belousov kostikbel at gmail.com
Mon Aug 2 20:48:10 UTC 2021


On Mon, Aug 02, 2021 at 12:15:55PM -0400, Alexander Motin wrote:
> 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.

https://reviews.freebsd.org/D31386


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