Skip to content

Commit

Permalink
Merge pull request torvalds#176 from opurdila/lkl-irq-handling-optimi…
Browse files Browse the repository at this point in the history
…zations

irq handling optimizations
  • Loading branch information
Octavian Purdila authored Jul 17, 2016
2 parents 732c596 + 8883b5f commit 8b62553
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions arch/lkl/kernel/irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,22 @@ int lkl_trigger_irq(int irq)

static void run_irqs(void)
{
int i;
int i = 1;
unsigned long status;

if (!irq_status)
return;

status = TEST_AND_CLEAR_IRQ_STATUS(IRQS_MASK);

for (i = 1; i < NR_IRQS; i++) {
if (status & IRQ_BIT(i)) {
while (status) {
if (status & 1) {
irq_enter();
generic_handle_irq(i);
irq_exit();
}
status = status >> 1;
i++;
}
}

Expand Down
2 changes: 1 addition & 1 deletion tools/lkl/tests/boot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ if [ -z "$fstype" ]; then
fi

file=`mktemp`
dd if=/dev/zero of=$file bs=1024 count=20480
dd if=/dev/zero of=$file bs=1024 count=102400

yes | mkfs.$fstype $file >/dev/null

Expand Down

0 comments on commit 8b62553

Please sign in to comment.