Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1245803

Re: [RFC v2 PATCH 09/14] MIPS: add support for generic SMP IPI support

From Qais Yousef <qais.yousef@imgtec.com>
Newsgroups linux.kernel
Subject Re: [RFC v2 PATCH 09/14] MIPS: add support for generic SMP IPI support
Date 2015-10-13 16:50 +0200
Message-ID <qj93Q-18p-27@gated-at.bofh.it> (permalink)
References <qj4Qx-3vO-3@gated-at.bofh.it> <qj4Qy-3vO-15@gated-at.bofh.it> <qj87M-8dT-13@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 10/13/2015 02:48 PM, Thomas Gleixner wrote:
> On Tue, 13 Oct 2015, Qais Yousef wrote:
>>   
>> +#ifdef CONFIG_GENERIC_IRQ_IPI
>> +void generic_smp_send_ipi_single(int cpu, unsigned int action)
> Please use a mips name space. This suggests that it s completely
> generic, which is not true.
>
>> +{
>> +	generic_smp_send_ipi_mask(cpumask_of(cpu), action);
>> +}
>> +
>> +void generic_smp_send_ipi_mask(const struct cpumask *mask, unsigned int action)
> Ditto.

OK.

>> +{
>> +	unsigned long flags;
>> +	unsigned int core;
>> +	int cpu;
>> +	struct ipi_mask ipi_mask;
>> +
>> +	ipi_mask.cpumask = ((struct cpumask *)mask)->bits;
> We have accessors for that. Hmm, so for this case we must make the
> ipi_mask different:
>
> struct ipi_mask {
> 	unsigned int	nbits;
> 	bool		global;
> 	union {
>         	     struct cpumask *mask;
> 	     unsigned long  cpu_bitmap[];
> 	};
> };
>

Right. This looks cleaner for sure. Not sure why I haven't though about 
this.

Thanks,
Qais
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[RFC v2 PATCH 09/14] MIPS: add support for generic SMP IPI support Qais Yousef <qais.yousef@imgtec.com> - 2015-10-13 12:20 +0200
  Re: [RFC v2 PATCH 09/14] MIPS: add support for generic SMP IPI  support Thomas Gleixner <tglx@linutronix.de> - 2015-10-13 15:50 +0200
    Re: [RFC v2 PATCH 09/14] MIPS: add support for generic SMP IPI  support Qais Yousef <qais.yousef@imgtec.com> - 2015-10-13 16:50 +0200

csiph-web