]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: lustre: remove cfs_for_each_possible_cpu()
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Aug 2013 23:36:31 +0000 (07:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Aug 2013 23:36:31 +0000 (07:36 +0800)
It was just a wrapper around for_each_possible_cpu()

Cc: Peng Tao <tao.peng@emc.com>
Cc: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/include/linux/libcfs/libcfs.h
drivers/staging/lustre/include/linux/libcfs/linux/linux-prim.h
drivers/staging/lustre/include/linux/libcfs/linux/portals_compat25.h
drivers/staging/lustre/lustre/include/linux/lustre_compat25.h
drivers/staging/lustre/lustre/libcfs/tracefile.c

index b71046ea18cb9b0ded3281fe0ac463a8cab17060..687dbab2c4ec464b811c56b3b8491bd1cf09054b 100644 (file)
@@ -84,10 +84,6 @@ static inline int __is_po2(unsigned long long val)
 
 #include <linux/list.h>
 
-#ifndef cfs_for_each_possible_cpu
-#  error cfs_for_each_possible_cpu is not supported by kernel!
-#endif
-
 /* libcfs tcpip */
 int libcfs_ipif_query(char *name, int *up, __u32 *ip, __u32 *mask);
 int libcfs_ipif_enumerate(char ***names);
index 029929a4fabcd393ffcf7427ff234a6f53e77cdb..eb4188bc6b85cc6af9f2ff673be111e78a647402 100644 (file)
 
 #include <linux/libcfs/linux/linux-time.h>
 
-
-/*
- * CPU
- */
-#ifdef for_each_possible_cpu
-#define cfs_for_each_possible_cpu(cpu) for_each_possible_cpu(cpu)
-#elif defined(for_each_cpu)
-#define cfs_for_each_possible_cpu(cpu) for_each_cpu(cpu)
-#endif
-
 /*
  * Sysctl register
  */
index 2bbb4d5c40520d6c87bc1033e94fb615bb70ff0e..fe4c63fb40a4fb5a70c2cf009d1ae800860d7a89 100644 (file)
@@ -95,13 +95,5 @@ int proc_call_handler(void *data, int write,
                      loff_t *ppos, void *buffer, size_t *lenp,
                      int (*handler)(void *data, int write,
                                     loff_t pos, void *buffer, int len));
-/*
- * CPU
- */
-#ifdef for_each_possible_cpu
-#define cfs_for_each_possible_cpu(cpu) for_each_possible_cpu(cpu)
-#elif defined(for_each_cpu)
-#define cfs_for_each_possible_cpu(cpu) for_each_cpu(cpu)
-#endif
 
 #endif /* _PORTALS_COMPAT_H */
index 089f358b6b2eb5224aed49084c8750c8f9430c04..9243dfab43d393f360a0f78c7dd7b8677455676f 100644 (file)
@@ -108,12 +108,6 @@ static inline void ll_set_fs_pwd(struct fs_struct *fs, struct vfsmount *mnt,
 #define ll_vfs_rename(old,old_dir,mnt,new,new_dir,mnt1) \
                vfs_rename(old,old_dir,new,new_dir)
 
-#ifdef for_each_possible_cpu
-#define cfs_for_each_possible_cpu(cpu) for_each_possible_cpu(cpu)
-#elif defined(for_each_cpu)
-#define cfs_for_each_possible_cpu(cpu) for_each_cpu(cpu)
-#endif
-
 #define cfs_bio_io_error(a,b)   bio_io_error((a))
 #define cfs_bio_endio(a,b,c)    bio_endio((a),(c))
 
index 439e71dfae339cf769f64dceaad8af3fc169ed68..68c77d3813958b71cb0593b8166a5a33b164a892 100644 (file)
@@ -529,7 +529,7 @@ static void collect_pages_on_all_cpus(struct page_collection *pc)
        int i, cpu;
 
        spin_lock(&pc->pc_lock);
-       cfs_for_each_possible_cpu(cpu) {
+       for_each_possible_cpu(cpu) {
                cfs_tcd_for_each_type_lock(tcd, i, cpu) {
                        list_splice_init(&tcd->tcd_pages, &pc->pc_pages);
                        tcd->tcd_cur_pages = 0;
@@ -562,7 +562,7 @@ static void put_pages_back_on_all_cpus(struct page_collection *pc)
        int i, cpu;
 
        spin_lock(&pc->pc_lock);
-       cfs_for_each_possible_cpu(cpu) {
+       for_each_possible_cpu(cpu) {
                cfs_tcd_for_each_type_lock(tcd, i, cpu) {
                        cur_head = tcd->tcd_pages.next;
 
@@ -630,7 +630,7 @@ static void put_pages_on_daemon_list(struct page_collection *pc)
        struct cfs_trace_cpu_data *tcd;
        int i, cpu;
 
-       cfs_for_each_possible_cpu(cpu) {
+       for_each_possible_cpu(cpu) {
                cfs_tcd_for_each_type_lock(tcd, i, cpu)
                        put_pages_on_tcd_daemon_list(pc, tcd);
        }
@@ -1159,7 +1159,7 @@ static void trace_cleanup_on_all_cpus(void)
        struct cfs_trace_page *tmp;
        int i, cpu;
 
-       cfs_for_each_possible_cpu(cpu) {
+       for_each_possible_cpu(cpu) {
                cfs_tcd_for_each_type_lock(tcd, i, cpu) {
                        tcd->tcd_shutting_down = 1;