diff options
author | Jithu Joseph <jithu.joseph@intel.com> | 2022-11-16 19:59:22 -0800 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2022-11-18 21:37:04 +0100 |
commit | a4c30fa4ead5e6628e5ff5a45664ba7181acf6f1 (patch) | |
tree | c5d35d084a404d9c5a4426f149ee89d8ee544e7f /drivers/platform/x86/intel/ifs/sysfs.c | |
parent | f4e209e956b5d66f0e6e34e89f19811c2c1e596e (diff) |
platform/x86/intel/ifs: Remove image loading during init
IFS test image is unnecessarily loaded during driver initialization.
Drop image loading during ifs_init() and improve module load time. With
this change, user has to load one when starting the tests.
As a consequence, make ifs_sem static as it is only used within sysfs.c
Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jithu Joseph <jithu.joseph@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Reviewed-by: Sohil Mehta <sohil.mehta@intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20221117035935.4136738-4-jithu.joseph@intel.com
Diffstat (limited to 'drivers/platform/x86/intel/ifs/sysfs.c')
-rw-r--r-- | drivers/platform/x86/intel/ifs/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/intel/ifs/sysfs.c b/drivers/platform/x86/intel/ifs/sysfs.c index 37d8380d6fa8..65dd6fea5342 100644 --- a/drivers/platform/x86/intel/ifs/sysfs.c +++ b/drivers/platform/x86/intel/ifs/sysfs.c @@ -13,7 +13,7 @@ * Protects against simultaneous tests on multiple cores, or * reloading can file while a test is in progress */ -DEFINE_SEMAPHORE(ifs_sem); +static DEFINE_SEMAPHORE(ifs_sem); /* * The sysfs interface to check additional details of last test |