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 _______________________________________________ dev-commits-src-main@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-main To unsubscribe, send any mail to "dev-commits-src-main-unsubscr...@freebsd.org"