History

Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip

Pull irq fix from Thomas Gleixner: "A small fix for the affinity spreading code. It failed to handle situations where a single vector was requested either due to only one CPU being available or vector exhaustion causing only a single interrupt to be granted. The fix is to simply remove the requirement in the affinity spreading code for more than one interrupt being available" * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: genirq/affinity: Create affinity mask for single vector

Linus Torvalds committed 7 years ago

Commit ed254bb2 parents 6054f4e 491beed1 file · +2 −4Browse files

Unified · Split

kernel/irq/affinity.c+2−4
@@ -251,11 +251,9 @@ irq_create_affinity_masks(unsigned int nvecs, struct irq_affinity *affd) · 250 unmodified lines
251 * Determine the number of vectors which need interrupt affinities251 * Determine the number of vectors which need interrupt affinities
252 * assigned. If the pre/post request exhausts the available vectors252 * assigned. If the pre/post request exhausts the available vectors
253 * then nothing to do here except for invoking the calc_sets()253 * then nothing to do here except for invoking the calc_sets()
254 * callback so the device driver can adjust to the situation. If there254 * callback so the device driver can adjust to the situation.
255 * is only a single vector, then managing the queue is pointless as
256 * well.
257 */255 */
258 if (nvecs > 1 && nvecs > affd->pre_vectors + affd->post_vectors)256 if (nvecs > affd->pre_vectors + affd->post_vectors)
259 affvecs = nvecs - affd->pre_vectors - affd->post_vectors;257 affvecs = nvecs - affd->pre_vectors - affd->post_vectors;
260 else258 else
261 affvecs = 0;259 affvecs = 0;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t