diff options
author | Yazen Ghannam <Yazen.Ghannam@amd.com> | 2017-01-27 11:24:21 -0600 |
---|---|---|
committer | Borislav Petkov <bp@suse.de> | 2017-01-28 14:36:47 +0100 |
commit | d7fc9d77acb8651e5fcb77df71dfd11fcf1f08ba (patch) | |
tree | 8b425f989437a0ff7e535dfb46b889441fbb1cba /drivers/edac/edac_mc.h | |
parent | df64636fa4816b6d562835475d9846dcfbfd8c7e (diff) |
EDAC: Add routine to check if MC devices list is empty
We need to know if any MC devices have been allocated.
Signed-off-by: Yazen Ghannam <Yazen.Ghannam@amd.com>
Cc: linux-edac <linux-edac@vger.kernel.org>
Link: http://lkml.kernel.org/r/1485537863-2707-7-git-send-email-Yazen.Ghannam@amd.com
[ Prettify text. ]
Signed-off-by: Borislav Petkov <bp@suse.de>
Diffstat (limited to 'drivers/edac/edac_mc.h')
-rw-r--r-- | drivers/edac/edac_mc.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/edac/edac_mc.h b/drivers/edac/edac_mc.h index 50fc1dc9c0d8..5357800e418d 100644 --- a/drivers/edac/edac_mc.h +++ b/drivers/edac/edac_mc.h @@ -149,6 +149,15 @@ extern int edac_mc_add_mc_with_groups(struct mem_ctl_info *mci, extern void edac_mc_free(struct mem_ctl_info *mci); /** + * edac_has_mcs() - Check if any MCs have been allocated. + * + * Returns: + * True if MC instances have been registered successfully. + * False otherwise. + */ +extern bool edac_has_mcs(void); + +/** * edac_mc_find() - Search for a mem_ctl_info structure whose index is @idx. * * @idx: index to be seek |