Gitweb: http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c84d6af881be84687fa924f16b2f4b4690354165 Commit: c84d6af881be84687fa924f16b2f4b4690354165 Parent: 08b6d290f977d8145804fd2b9bc2c331f2484f8e Author: Alan Cox <[EMAIL PROTECTED]> AuthorDate: Wed Jan 30 13:33:25 2008 +0100 Committer: Ingo Molnar <[EMAIL PROTECTED]> CommitDate: Wed Jan 30 13:33:25 2008 +0100
x86: reboot: remove inb_p usage We are driving a motherboard port so use a 2uS explicit delay at this point. Signed-off-by: Alan Cox <[EMAIL PROTECTED]> Signed-off-by: Ingo Molnar <[EMAIL PROTECTED]> Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]> --- arch/x86/kernel/reboot.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/arch/x86/kernel/reboot.c b/arch/x86/kernel/reboot.c index 5b32f0b..5818dc2 100644 --- a/arch/x86/kernel/reboot.c +++ b/arch/x86/kernel/reboot.c @@ -319,9 +319,11 @@ static inline void kb_wait(void) { int i; - for (i = 0; i < 0x10000; i++) - if ((inb_p(0x64) & 0x02) == 0) + for (i = 0; i < 0x10000; i++) { + if ((inb(0x64) & 0x02) == 0) break; + udelay(2); + } } void machine_emergency_restart(void) - To unsubscribe from this list: send the line "unsubscribe git-commits-head" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html