Changeset a35b458 in mainline for kernel/arch/ppc32/src/interrupt.c


Ignore:
Timestamp:
2018-03-02T20:10:49Z (7 years ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
f1380b7
Parents:
3061bc1
git-author:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
git-committer:
Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
Message:

style: Remove trailing whitespace on _all_ lines, including empty ones, for particular file types.

Command used: tools/srepl '\s\+$' '' -- *.c *.h *.py *.sh *.s *.S *.ag

Currently, whitespace on empty lines is very inconsistent.
There are two basic choices: Either remove the whitespace, or keep empty lines
indented to the level of surrounding code. The former is AFAICT more common,
and also much easier to do automatically.

Alternatively, we could write script for automatic indentation, and use that
instead. However, if such a script exists, it's possible to use the indented
style locally, by having the editor apply relevant conversions on load/save,
without affecting remote repository. IMO, it makes more sense to adopt
the simpler rule.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/arch/ppc32/src/interrupt.c

    r3061bc1 ra35b458  
    6666        log_printf("r0 =%0#10" PRIx32 "\tr1 =%0#10" PRIx32 "\t"
    6767            "r2 =%0#10" PRIx32 "\n", istate->r0, istate->sp, istate->r2);
    68        
     68
    6969        log_printf("r3 =%0#10" PRIx32 "\tr4 =%0#10" PRIx32 "\t"
    7070            "r5 =%0#10" PRIx32 "\n", istate->r3, istate->r4, istate->r5);
    71        
     71
    7272        log_printf("r6 =%0#10" PRIx32 "\tr7 =%0#10" PRIx32 "\t"
    7373            "r8 =%0#10" PRIx32 "\n", istate->r6, istate->r7, istate->r8);
    74        
     74
    7575        log_printf("r9 =%0#10" PRIx32 "\tr10=%0#10" PRIx32 "\t"
    7676            "r11=%0#10" PRIx32 "\n", istate->r9, istate->r10, istate->r11);
    77        
     77
    7878        log_printf("r12=%0#10" PRIx32 "\tr13=%0#10" PRIx32 "\t"
    7979            "r14=%0#10" PRIx32 "\n", istate->r12, istate->r13, istate->r14);
    80        
     80
    8181        log_printf("r15=%0#10" PRIx32 "\tr16=%0#10" PRIx32 "\t"
    8282            "r17=%0#10" PRIx32 "\n", istate->r15, istate->r16, istate->r17);
    83        
     83
    8484        log_printf("r18=%0#10" PRIx32 "\tr19=%0#10" PRIx32 "\t"
    8585            "r20=%0#10" PRIx32 "\n", istate->r18, istate->r19, istate->r20);
    86        
     86
    8787        log_printf("r21=%0#10" PRIx32 "\tr22=%0#10" PRIx32 "\t"
    8888            "r23=%0#10" PRIx32 "\n", istate->r21, istate->r22, istate->r23);
    89        
     89
    9090        log_printf("r24=%0#10" PRIx32 "\tr25=%0#10" PRIx32 "\t"
    9191            "r26=%0#10" PRIx32 "\n", istate->r24, istate->r25, istate->r26);
    92        
     92
    9393        log_printf("r27=%0#10" PRIx32 "\tr28=%0#10" PRIx32 "\t"
    9494            "r29=%0#10" PRIx32 "\n", istate->r27, istate->r28, istate->r29);
    95        
     95
    9696        log_printf("r30=%0#10" PRIx32 "\tr31=%0#10" PRIx32 "\n",
    9797            istate->r30, istate->r31);
    98        
     98
    9999        log_printf("cr =%0#10" PRIx32 "\tpc =%0#10" PRIx32 "\t"
    100100            "lr =%0#10" PRIx32 "\n", istate->cr, istate->pc, istate->lr);
    101        
     101
    102102        log_printf("ctr=%0#10" PRIx32 "\txer=%0#10" PRIx32 "\t"
    103103            "dar=%0#10" PRIx32 "\n", istate->ctr, istate->xer, istate->dar);
    104        
     104
    105105        log_printf("srr1=%0#10" PRIx32 "\n", istate->srr1);
    106106}
     
    119119                         * The IRQ handler was found.
    120120                         */
    121                        
     121
    122122                        if (irq->preack) {
    123123                                /* Acknowledge the interrupt before processing */
     
    125125                                        irq->cir(irq->cir_arg, irq->inr);
    126126                        }
    127                        
     127
    128128                        irq->handler(irq);
    129                        
     129
    130130                        if (!irq->preack) {
    131131                                if (irq->cir)
    132132                                        irq->cir(irq->cir_arg, irq->inr);
    133133                        }
    134                        
     134
    135135                        irq_spinlock_unlock(&irq->lock, false);
    136136                } else {
Note: See TracChangeset for help on using the changeset viewer.