The patch titled Subject: kernel/smp.c: remove 'priv' of call_single_data has been added to the -mm tree. Its filename is kernel-smpc-remove-priv-of-call_single_data.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: liguang <lig.fnst@xxxxxxxxxxxxxx> Subject: kernel/smp.c: remove 'priv' of call_single_data The 'priv' field is redundant; we can pass data via 'info'. Signed-off-by: liguang <lig.fnst@xxxxxxxxxxxxxx> Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx> Cc: Oleg Nesterov <oleg@xxxxxxxxxx> Cc: Ingo Molnar <mingo@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/smp.h | 1 - kernel/softirq.c | 6 ++---- 2 files changed, 2 insertions(+), 5 deletions(-) diff -puN include/linux/smp.h~kernel-smpc-remove-priv-of-call_single_data include/linux/smp.h --- a/include/linux/smp.h~kernel-smpc-remove-priv-of-call_single_data +++ a/include/linux/smp.h @@ -20,7 +20,6 @@ struct call_single_data { smp_call_func_t func; void *info; u16 flags; - u16 priv; }; /* total number of cpus in this system (may exceed NR_CPUS) */ diff -puN kernel/softirq.c~kernel-smpc-remove-priv-of-call_single_data kernel/softirq.c --- a/kernel/softirq.c~kernel-smpc-remove-priv-of-call_single_data +++ a/kernel/softirq.c @@ -620,8 +620,7 @@ static void remote_softirq_receive(void unsigned long flags; int softirq; - softirq = cp->priv; - + softirq = *(int *)cp->info; local_irq_save(flags); __local_trigger(cp, softirq); local_irq_restore(flags); @@ -631,9 +630,8 @@ static int __try_remote_softirq(struct c { if (cpu_online(cpu)) { cp->func = remote_softirq_receive; - cp->info = cp; + cp->info = &softirq; cp->flags = 0; - cp->priv = softirq; __smp_call_function_single(cpu, cp, 0); return 0; _ Patches currently in -mm which might be from lig.fnst@xxxxxxxxxxxxxx are linux-next.patch kernel-smpc-use-=-for-csd_lock.patch kernel-smpc-remove-priv-of-call_single_data.patch semaphore-give-an-unlikely-for-downs-timeout.patch semaphore-boolize-semaphore_waiters-up.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html