From: tip-bot for Cyrill Gorcunov <gorcunov@openvz.org>
To: linux-tip-commits@vger.kernel.org
Cc: linux-kernel@vger.kernel.org, hpa@zytor.com, mingo@redhat.com,
yinghai@kernel.org, gorcunov@openvz.org, macro@linux-mips.org,
tglx@linutronix.de, mingo@elte.hu
Subject: [tip:x86/apic] x86, apic: Use PAGE_SIZE instead of numbers
Date: Sun, 8 Nov 2009 16:09:58 GMT [thread overview]
Message-ID: <tip-46dc281b1bb02527195fe2ad50a3af6d7f7f7325@git.kernel.org> (raw)
In-Reply-To: <20091108155356.GB25940@lenovo>
Commit-ID: 46dc281b1bb02527195fe2ad50a3af6d7f7f7325
Gitweb: http://git.kernel.org/tip/46dc281b1bb02527195fe2ad50a3af6d7f7f7325
Author: Cyrill Gorcunov <gorcunov@openvz.org>
AuthorDate: Sun, 8 Nov 2009 18:53:56 +0300
Committer: Ingo Molnar <mingo@elte.hu>
CommitDate: Sun, 8 Nov 2009 17:06:22 +0100
x86, apic: Use PAGE_SIZE instead of numbers
The whole page is reserved for IO-APIC fixmap
due to non-cacheable requirement. So lets note
this explicitly instead of playing with numbers.
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Maciej W. Rozycki <macro@linux-mips.org>
LKML-Reference: <20091108155356.GB25940@lenovo>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
---
arch/x86/kernel/apic/io_apic.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/x86/kernel/apic/io_apic.c b/arch/x86/kernel/apic/io_apic.c
index 31e9db3..9ee1c16 100644
--- a/arch/x86/kernel/apic/io_apic.c
+++ b/arch/x86/kernel/apic/io_apic.c
@@ -4111,7 +4111,7 @@ fake_ioapic_page:
idx++;
ioapic_res->start = ioapic_phys;
- ioapic_res->end = ioapic_phys + (4 * 1024) - 1;
+ ioapic_res->end = ioapic_phys + PAGE_SIZE-1;
ioapic_res++;
}
}
next prev parent reply other threads:[~2009-11-08 16:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-08 15:53 [PATCH -tip] x86,apic: Use PAGE_SIZE instead of numbers Cyrill Gorcunov
2009-11-08 16:09 ` tip-bot for Cyrill Gorcunov [this message]
2009-11-08 17:28 ` Maciej W. Rozycki
2009-11-08 17:36 ` Cyrill Gorcunov
2009-11-08 18:03 ` Ingo Molnar
2009-11-09 23:07 ` H. Peter Anvin
2009-11-10 0:15 ` Maciej W. Rozycki
2009-11-10 4:40 ` Cyrill Gorcunov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-46dc281b1bb02527195fe2ad50a3af6d7f7f7325@git.kernel.org \
--to=gorcunov@openvz.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=macro@linux-mips.org \
--cc=mingo@elte.hu \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
--cc=yinghai@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox