Whamcloud - gitweb
LU-4759 build: Remove obsolete file. Documentation was removed from the tree FDL...
[fs/lustre-release.git] / libcfs / libcfs / libcfs_cpu.c
index 775af69..87dec68 100644 (file)
@@ -58,6 +58,7 @@ cfs_cpt_table_alloc(unsigned int ncpt)
        LIBCFS_ALLOC(cptab, sizeof(*cptab));
        if (cptab != NULL) {
                cptab->ctb_version = CFS_CPU_VERSION_MAGIC;
+               set_bit(0, &cptab->ctb_nodemask);
                cptab->ctb_nparts  = ncpt;
        }
 
@@ -95,6 +96,13 @@ cfs_cpt_online(struct cfs_cpt_table *cptab, int cpt)
 }
 EXPORT_SYMBOL(cfs_cpt_online);
 
+nodemask_t *
+cfs_cpt_nodemask(struct cfs_cpt_table *cptab, int cpt)
+{
+       return &cptab->ctb_nodemask;
+}
+EXPORT_SYMBOL(cfs_cpt_cpumask);
+
 int
 cfs_cpt_set_cpu(struct cfs_cpt_table *cptab, int cpt, int cpu)
 {