]> www.infradead.org Git - users/jedix/linux-maple.git/commit
platform/x86: ISST: Simplify isst_misc_reg() and isst_misc_unreg()
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Wed, 31 Jul 2024 18:42:56 +0000 (11:42 -0700)
committerHans de Goede <hdegoede@redhat.com>
Mon, 12 Aug 2024 14:32:13 +0000 (16:32 +0200)
commit440814caedb0e33c56f0478d7fa5b54479013904
tree5dbc142c4e7d182a38a34b6ad4bbe78140e5ec43
parent523b1c036ba970beaac3584f92a367be367f9146
platform/x86: ISST: Simplify isst_misc_reg() and isst_misc_unreg()

After commit '1630dc626c87 ("platform/x86: ISST: Add model specific
loading for common module")' isst_misc_reg() and isst_misc_unreg() can be
simplified. Since these functions are only called during module_init()
and module_exit() respectively, there is no contention while calling
misc_register()/misc_deregister or isst_if_cpu_info_init()/
isst_if_cpu_info_exit().

Hence remove mutex and reference counting.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20240731184256.1852840-1-srinivas.pandruvada@linux.intel.com
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/platform/x86/intel/speed_select_if/isst_if_common.c