History

irq: Fix typos in comments

Fix ~36 single-word typos in the IRQ, irqchip and irqdomain code comments.

Ingo Molnar committed 5 years ago

Commit a359f751 parent c93a5e223 files · +36 −36Browse files

Showing the changes to kernel (7 of 23 files). Show all

Unified · Split

7 files
  1. kernel/irq/chip.c +1 −1
  2. kernel/irq/dummychip.c +1 −1
  3. kernel/irq/irqdesc.c +1 −1
  4. kernel/irq/irqdomain.c +4 −4
  5. kernel/irq/manage.c +3 −3
  6. kernel/irq/msi.c +1 −1
  7. kernel/irq/timings.c +1 −1
kernel/irq/chip.c+1−1
@@ -808,7 +808,7 @@ void handle_edge_irq(struct irq_desc *desc) · 807 unmodified lines
808 /*808 /*
809 * When another irq arrived while we were handling809 * When another irq arrived while we were handling
810 * one, we could have masked the irq.810 * one, we could have masked the irq.
811 * Renable it, if it was not disabled in meantime.811 * Reenable it, if it was not disabled in meantime.
812 */812 */
813 if (unlikely(desc->istate & IRQS_PENDING)) {813 if (unlikely(desc->istate & IRQS_PENDING)) {
814 if (!irqd_irq_disabled(&desc->irq_data) &&814 if (!irqd_irq_disabled(&desc->irq_data) &&
kernel/irq/dummychip.c+1−1
@@ -13,7 +13,7 @@ · 12 unmodified lines
13 13
14/*14/*
15 * What should we do if we get a hw irq event on an illegal vector?15 * What should we do if we get a hw irq event on an illegal vector?
16 * Each architecture has to answer this themself.16 * Each architecture has to answer this themselves.
17 */17 */
18static void ack_bad(struct irq_data *data)18static void ack_bad(struct irq_data *data)
19{19{
kernel/irq/irqdesc.c+1−1
@@ -31,7 +31,7 @@ static int __init irq_affinity_setup(char *str) · 30 unmodified lines
31 cpulist_parse(str, irq_default_affinity);31 cpulist_parse(str, irq_default_affinity);
32 /*32 /*
33 * Set at least the boot cpu. We don't want to end up with33 * Set at least the boot cpu. We don't want to end up with
34 * bugreports caused by random comandline masks34 * bugreports caused by random commandline masks
35 */35 */
36 cpumask_set_cpu(smp_processor_id(), irq_default_affinity);36 cpumask_set_cpu(smp_processor_id(), irq_default_affinity);
37 return 1;37 return 1;
kernel/irq/irqdomain.c+4−4
@@ -62,7 +62,7 @@ EXPORT_SYMBOL_GPL(irqchip_fwnode_ops); · 61 unmodified lines
62 * @name: Optional user provided domain name62 * @name: Optional user provided domain name
63 * @pa: Optional user-provided physical address63 * @pa: Optional user-provided physical address
64 *64 *
65 * Allocate a struct irqchip_fwid, and return a poiner to the embedded65 * Allocate a struct irqchip_fwid, and return a pointer to the embedded
66 * fwnode_handle (or NULL on failure).66 * fwnode_handle (or NULL on failure).
67 *67 *
68 * Note: The types IRQCHIP_FWNODE_NAMED and IRQCHIP_FWNODE_NAMED_ID are68 * Note: The types IRQCHIP_FWNODE_NAMED and IRQCHIP_FWNODE_NAMED_ID are
@@ -665,7 +665,7 @@ unsigned int irq_create_mapping_affinity(struct irq_domain *domain, · 596 unmodified lines
665 665
666 pr_debug("irq_create_mapping(0x%p, 0x%lx)\n", domain, hwirq);666 pr_debug("irq_create_mapping(0x%p, 0x%lx)\n", domain, hwirq);
667 667
668 /* Look for default domain if nececssary */668 /* Look for default domain if necessary */
669 if (domain == NULL)669 if (domain == NULL)
670 domain = irq_default_domain;670 domain = irq_default_domain;
671 if (domain == NULL) {671 if (domain == NULL) {
@@ -906,7 +906,7 @@ unsigned int irq_find_mapping(struct irq_domain *domain, · 234 unmodified lines
906{906{
907 struct irq_data *data;907 struct irq_data *data;
908 908
909 /* Look for default domain if nececssary */909 /* Look for default domain if necessary */
910 if (domain == NULL)910 if (domain == NULL)
911 domain = irq_default_domain;911 domain = irq_default_domain;
912 if (domain == NULL)912 if (domain == NULL)
@@ -1436,7 +1436,7 @@ int irq_domain_alloc_irqs_hierarchy(struct irq_domain *domain, · 523 unmodified lines
1436 * The whole process to setup an IRQ has been split into two steps.1436 * The whole process to setup an IRQ has been split into two steps.
1437 * The first step, __irq_domain_alloc_irqs(), is to allocate IRQ1437 * The first step, __irq_domain_alloc_irqs(), is to allocate IRQ
1438 * descriptor and required hardware resources. The second step,1438 * descriptor and required hardware resources. The second step,
1439 * irq_domain_activate_irq(), is to program hardwares with preallocated1439 * irq_domain_activate_irq(), is to program the hardware with preallocated
1440 * resources. In this way, it's easier to rollback when failing to1440 * resources. In this way, it's easier to rollback when failing to
1441 * allocate resources.1441 * allocate resources.
1442 */1442 */
kernel/irq/manage.c+3−3
@@ -326,7 +326,7 @@ static bool irq_set_affinity_deactivated(struct irq_data *data, · 325 unmodified lines
326 * If the interrupt is not yet activated, just store the affinity326 * If the interrupt is not yet activated, just store the affinity
327 * mask and do not call the chip driver at all. On activation the327 * mask and do not call the chip driver at all. On activation the
328 * driver has to make sure anyway that the interrupt is in a328 * driver has to make sure anyway that the interrupt is in a
329 * useable state so startup works.329 * usable state so startup works.
330 */330 */
331 if (!IS_ENABLED(CONFIG_IRQ_DOMAIN_HIERARCHY) ||331 if (!IS_ENABLED(CONFIG_IRQ_DOMAIN_HIERARCHY) ||
332 irqd_is_activated(data) || !irqd_affinity_on_activate(data))332 irqd_is_activated(data) || !irqd_affinity_on_activate(data))
@@ -1054,7 +1054,7 @@ again: · 721 unmodified lines
1054 * to IRQS_INPROGRESS and the irq line is masked forever.1054 * to IRQS_INPROGRESS and the irq line is masked forever.
1055 *1055 *
1056 * This also serializes the state of shared oneshot handlers1056 * This also serializes the state of shared oneshot handlers
1057 * versus "desc->threads_onehsot |= action->thread_mask;" in1057 * versus "desc->threads_oneshot |= action->thread_mask;" in
1058 * irq_wake_thread(). See the comment there which explains the1058 * irq_wake_thread(). See the comment there which explains the
1059 * serialization.1059 * serialization.
1060 */1060 */
@@ -1909,7 +1909,7 @@ static struct irqaction *__free_irq(struct irq_desc *desc, void *dev_id) · 848 unmodified lines
1909 /* Last action releases resources */1909 /* Last action releases resources */
1910 if (!desc->action) {1910 if (!desc->action) {
1911 /*1911 /*
1912 * Reaquire bus lock as irq_release_resources() might1912 * Reacquire bus lock as irq_release_resources() might
1913 * require it to deallocate resources over the slow bus.1913 * require it to deallocate resources over the slow bus.
1914 */1914 */
1915 chip_bus_lock(desc);1915 chip_bus_lock(desc);
kernel/irq/msi.c+1−1
@@ -5,7 +5,7 @@ · 4 unmodified lines
5 *5 *
6 * This file is licensed under GPLv2.6 * This file is licensed under GPLv2.
7 *7 *
8 * This file contains common code to support Message Signalled Interrupt for8 * This file contains common code to support Message Signaled Interrupts for
9 * PCI compatible and non PCI compatible devices.9 * PCI compatible and non PCI compatible devices.
10 */10 */
11#include <linux/types.h>11#include <linux/types.h>
kernel/irq/timings.c+1−1
@@ -485,7 +485,7 @@ static inline void irq_timings_store(int irq, struct irqt_stat *irqs, u64 ts) · 484 unmodified lines
485 485
486 /*486 /*
487 * The interrupt triggered more than one second apart, that487 * The interrupt triggered more than one second apart, that
488 * ends the sequence as predictible for our purpose. In this488 * ends the sequence as predictable for our purpose. In this
489 * case, assume we have the beginning of a sequence and the489 * case, assume we have the beginning of a sequence and the
490 * timestamp is the first value. As it is impossible to490 * timestamp is the first value. As it is impossible to
491 * predict anything at this point, return.491 * predict anything at this point, return.

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