Commit 4c6d874
committed
platform/x86: ISST: Simplify isst_misc_reg() and isst_misc_unreg()
JIRA: https://issues.redhat.com/browse/RHEL-65196
commit 440814c
Author: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Date: Wed Jul 31 11:42:56 2024 -0700
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>
Signed-off-by: Steve Best <sbest@redhat.com>1 parent fef71f2 commit 4c6d874
File tree
1 file changed
+11
-31
lines changed- drivers/platform/x86/intel/speed_select_if
1 file changed
+11
-31
lines changedLines changed: 11 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
651 | 651 | | |
652 | 652 | | |
653 | 653 | | |
654 | | - | |
655 | | - | |
656 | | - | |
657 | | - | |
658 | 654 | | |
659 | 655 | | |
660 | 656 | | |
| |||
720 | 716 | | |
721 | 717 | | |
722 | 718 | | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | | - | |
731 | | - | |
732 | | - | |
733 | | - | |
734 | | - | |
735 | | - | |
736 | | - | |
737 | | - | |
738 | | - | |
| 719 | + | |
739 | 720 | | |
740 | | - | |
741 | | - | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
742 | 724 | | |
743 | | - | |
| 725 | + | |
| 726 | + | |
| 727 | + | |
| 728 | + | |
| 729 | + | |
744 | 730 | | |
745 | 731 | | |
746 | 732 | | |
747 | 733 | | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
752 | | - | |
753 | | - | |
754 | | - | |
755 | | - | |
| 734 | + | |
| 735 | + | |
756 | 736 | | |
757 | 737 | | |
758 | 738 | | |
| |||
0 commit comments