aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/platform/x86/intel/ifs/load.c
diff options
context:
space:
mode:
authorJithu Joseph <jithu.joseph@intel.com>2023-03-21 17:33:51 -0700
committerHans de Goede <hdegoede@redhat.com>2023-03-27 16:10:20 +0200
commit67f88ffa6d35d6b4e776f98ea64aab0bc026e2a2 (patch)
tree4116c285bdd3002adb07e07d4849c847db3de0cf /drivers/platform/x86/intel/ifs/load.c
parentplatform/x86: Add new msi-ec driver (diff)
downloadwireguard-linux-67f88ffa6d35d6b4e776f98ea64aab0bc026e2a2.tar.xz
wireguard-linux-67f88ffa6d35d6b4e776f98ea64aab0bc026e2a2.zip
platform/x86/intel/ifs: Separate ifs_pkg_auth from ifs_data
In preparation to supporting additional tests, remove ifs_pkg_auth from per-test scope, as it is only applicable for one test type. This will simplify ifs_init() flow when multiple tests are added. Signed-off-by: Jithu Joseph <jithu.joseph@intel.com> Reviewed-by: Tony Luck <tony.luck@intel.com> Link: https://lore.kernel.org/r/20230322003359.213046-2-jithu.joseph@intel.com Reviewed-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/platform/x86/intel/ifs/load.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/platform/x86/intel/ifs/load.c b/drivers/platform/x86/intel/ifs/load.c
index c5c24e6fdc43..74a50e99cacd 100644
--- a/drivers/platform/x86/intel/ifs/load.c
+++ b/drivers/platform/x86/intel/ifs/load.c
@@ -192,7 +192,7 @@ static int scan_chunks_sanity_check(struct device *dev)
struct ifs_work local_work;
int curr_pkg, cpu, ret;
- memset(ifsd->pkg_auth, 0, (topology_max_packages() * sizeof(bool)));
+ memset(ifs_pkg_auth, 0, (topology_max_packages() * sizeof(bool)));
ret = validate_ifs_metadata(dev);
if (ret)
return ret;
@@ -204,7 +204,7 @@ static int scan_chunks_sanity_check(struct device *dev)
cpus_read_lock();
for_each_online_cpu(cpu) {
curr_pkg = topology_physical_package_id(cpu);
- if (ifsd->pkg_auth[curr_pkg])
+ if (ifs_pkg_auth[curr_pkg])
continue;
reinit_completion(&ifs_done);
local_work.dev = dev;
@@ -215,7 +215,7 @@ static int scan_chunks_sanity_check(struct device *dev)
ret = -EIO;
goto out;
}
- ifsd->pkg_auth[curr_pkg] = 1;
+ ifs_pkg_auth[curr_pkg] = 1;
}
ret = 0;
out: