diff options
author | Dan Williams <dan.j.williams@intel.com> | 2019-02-13 18:57:22 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2019-02-20 23:18:59 +0100 |
commit | e34b8252a3d2893ca55c82dbfcdaa302fa03d400 (patch) | |
tree | 43722849afc7856cd471c009e22e80ede83ed5ad /drivers/acpi/nfit/nfit.h | |
parent | nfit/ars: Remove ars_start_flags (diff) | |
download | linux-e34b8252a3d2893ca55c82dbfcdaa302fa03d400.tar.xz linux-e34b8252a3d2893ca55c82dbfcdaa302fa03d400.zip |
nfit/ars: Introduce scrub_flags
In preparation for introducing new flags to gate whether ARS results are
stale, or poll the completion state, convert the existing flags to an
unsigned long with enumerated values. This conversion allows the flags
to be atomically updated outside of ->init_mutex.
Reviewed-by: Toshi Kani <toshi.kani@hpe.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/acpi/nfit/nfit.h')
-rw-r--r-- | drivers/acpi/nfit/nfit.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/acpi/nfit/nfit.h b/drivers/acpi/nfit/nfit.h index 871fb3de3b30..897ce10192a0 100644 --- a/drivers/acpi/nfit/nfit.h +++ b/drivers/acpi/nfit/nfit.h @@ -210,6 +210,11 @@ struct nfit_mem { int family; }; +enum scrub_flags { + ARS_BUSY, + ARS_CANCEL, +}; + struct acpi_nfit_desc { struct nvdimm_bus_descriptor nd_desc; struct acpi_table_header acpi_header; @@ -231,8 +236,7 @@ struct acpi_nfit_desc { unsigned int max_ars; unsigned int scrub_count; unsigned int scrub_mode; - unsigned int scrub_busy:1; - unsigned int cancel:1; + unsigned long scrub_flags; unsigned long dimm_cmd_force_en; unsigned long bus_cmd_force_en; unsigned long bus_nfit_cmd_force_en; |