[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 05/22] i8259: Remove premature inline function attri
From: |
Jan Kiszka |
Subject: |
[Qemu-devel] [PATCH 05/22] i8259: Remove premature inline function attributes |
Date: |
Wed, 28 Sep 2011 13:00:51 +0200 |
The compiler is smarter in choosing the right optimization.
Signed-off-by: Jan Kiszka <address@hidden>
---
hw/i8259.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/i8259.c b/hw/i8259.c
index 6006123..f1d58ba 100644
--- a/hw/i8259.c
+++ b/hw/i8259.c
@@ -80,7 +80,7 @@ static uint64_t irq_count[16];
PicState2 *isa_pic;
/* set irq level. If an edge is detected, then the IRR is set to 1 */
-static inline void pic_set_irq1(PicState *s, int irq, int level)
+static void pic_set_irq1(PicState *s, int irq, int level)
{
int mask;
mask = 1 << irq;
@@ -107,7 +107,7 @@ static inline void pic_set_irq1(PicState *s, int irq, int
level)
/* return the highest priority found in mask (highest = smallest
number). Return 8 if no irq */
-static inline int get_priority(PicState *s, int mask)
+static int get_priority(PicState *s, int mask)
{
int priority;
if (mask == 0)
@@ -206,7 +206,7 @@ static void i8259_set_irq(void *opaque, int irq, int level)
}
/* acknowledge interrupt 'irq' */
-static inline void pic_intack(PicState *s, int irq)
+static void pic_intack(PicState *s, int irq)
{
if (s->auto_eoi) {
if (s->rotate_on_auto_eoi)
--
1.7.3.4
- [Qemu-devel] [PATCH 00/22] Rework i8259 and PC interrupt models, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 06/22] i8259: Drop obsolete prototypes, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 05/22] i8259: Remove premature inline function attributes,
Jan Kiszka <=
- [Qemu-devel] [PATCH 22/22] i8259: Move to hw library, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 20/22] i8259: Fix coding style, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 10/22] i8259: Reorder intack in pic_read_irq, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 16/22] i8259: Replace PicState::pics_state with master flag, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 04/22] pc: Fix and clean up PIC-to-APIC IRQ path, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 18/22] qdev: Add HEX8 property, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 07/22] i8259: Move pic_set_irq1 after pic_update_irq, Jan Kiszka, 2011/09/28
- [Qemu-devel] [PATCH 08/22] i8239: Introduce per-PIC output interrupt, Jan Kiszka, 2011/09/28