stop_machine: Add function and caller debug info
[sfrench/cifs-2.6.git] / include / linux / stop_machine.h
index 76d8b09384a7aecc1a8a688bcdd332adee0b5fa5..30577c3aecf81109bff66e15a043c181b5cda613 100644 (file)
@@ -24,6 +24,7 @@ typedef int (*cpu_stop_fn_t)(void *arg);
 struct cpu_stop_work {
        struct list_head        list;           /* cpu_stopper->works */
        cpu_stop_fn_t           fn;
+       unsigned long           caller;
        void                    *arg;
        struct cpu_stop_done    *done;
 };
@@ -36,6 +37,8 @@ void stop_machine_park(int cpu);
 void stop_machine_unpark(int cpu);
 void stop_machine_yield(const struct cpumask *cpumask);
 
+extern void print_stop_info(const char *log_lvl, struct task_struct *task);
+
 #else  /* CONFIG_SMP */
 
 #include <linux/workqueue.h>
@@ -80,6 +83,8 @@ static inline bool stop_one_cpu_nowait(unsigned int cpu,
        return false;
 }
 
+static inline void print_stop_info(const char *log_lvl, struct task_struct *task) { }
+
 #endif /* CONFIG_SMP */
 
 /*