mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
genirq/affinity: Code consolidation
All information and calculations in the interrupt affinity spreading code is strictly unsigned int. Though the code uses int all over the place. Convert it over to unsigned int. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Ming Lei <ming.lei@redhat.com> Acked-by: Marc Zyngier <marc.zyngier@arm.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Bjorn Helgaas <helgaas@kernel.org> Cc: Jens Axboe <axboe@kernel.dk> Cc: linux-block@vger.kernel.org Cc: Sagi Grimberg <sagi@grimberg.me> Cc: linux-nvme@lists.infradead.org Cc: linux-pci@vger.kernel.org Cc: Keith Busch <keith.busch@intel.com> Cc: Sumit Saxena <sumit.saxena@broadcom.com> Cc: Kashyap Desai <kashyap.desai@broadcom.com> Cc: Shivasharan Srikanteshwara <shivasharan.srikanteshwara@broadcom.com> Link: https://lkml.kernel.org/r/20190216172228.336424556@linutronix.de
This commit is contained in:
parent
d869f86645
commit
0145c30e89
2 changed files with 38 additions and 38 deletions
|
@ -251,10 +251,10 @@ struct irq_affinity_notify {
|
|||
* @sets: Number of affinitized sets
|
||||
*/
|
||||
struct irq_affinity {
|
||||
int pre_vectors;
|
||||
int post_vectors;
|
||||
int nr_sets;
|
||||
int *sets;
|
||||
unsigned int pre_vectors;
|
||||
unsigned int post_vectors;
|
||||
unsigned int nr_sets;
|
||||
unsigned int *sets;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -314,9 +314,10 @@ extern int
|
|||
irq_set_affinity_notifier(unsigned int irq, struct irq_affinity_notify *notify);
|
||||
|
||||
struct irq_affinity_desc *
|
||||
irq_create_affinity_masks(int nvec, const struct irq_affinity *affd);
|
||||
irq_create_affinity_masks(unsigned int nvec, const struct irq_affinity *affd);
|
||||
|
||||
int irq_calc_affinity_vectors(int minvec, int maxvec, const struct irq_affinity *affd);
|
||||
unsigned int irq_calc_affinity_vectors(unsigned int minvec, unsigned int maxvec,
|
||||
const struct irq_affinity *affd);
|
||||
|
||||
#else /* CONFIG_SMP */
|
||||
|
||||
|
@ -350,13 +351,14 @@ irq_set_affinity_notifier(unsigned int irq, struct irq_affinity_notify *notify)
|
|||
}
|
||||
|
||||
static inline struct irq_affinity_desc *
|
||||
irq_create_affinity_masks(int nvec, const struct irq_affinity *affd)
|
||||
irq_create_affinity_masks(unsigned int nvec, const struct irq_affinity *affd)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static inline int
|
||||
irq_calc_affinity_vectors(int minvec, int maxvec, const struct irq_affinity *affd)
|
||||
static inline unsigned int
|
||||
irq_calc_affinity_vectors(unsigned int minvec, unsigned int maxvec,
|
||||
const struct irq_affinity *affd)
|
||||
{
|
||||
return maxvec;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue