From patchwork Sun Jan 1 16:37:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Alexander Gordeev X-Patchwork-Id: 9492921 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id AA50E60416 for ; Sun, 1 Jan 2017 16:37:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 96AF81FF35 for ; Sun, 1 Jan 2017 16:37:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8B953223B2; Sun, 1 Jan 2017 16:37:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3BB281FF35 for ; Sun, 1 Jan 2017 16:37:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932333AbdAAQhv (ORCPT ); Sun, 1 Jan 2017 11:37:51 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48448 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932325AbdAAQhn (ORCPT ); Sun, 1 Jan 2017 11:37:43 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 787E212B27 for ; Sun, 1 Jan 2017 16:37:44 +0000 (UTC) Received: from dhcp-27-118.brq.redhat.com (dhcp-27-122.brq.redhat.com [10.34.27.122]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id v01GbZLP019089; Sun, 1 Jan 2017 11:37:43 -0500 From: Alexander Gordeev To: kvm@vger.kernel.org Cc: Alexander Gordeev , =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= Subject: [kvm-unit-tests RFC PATCH 07/10] x86: apic: Remove duplicate outb implementation Date: Sun, 1 Jan 2017 17:37:29 +0100 Message-Id: <1483288652-18983-8-git-send-email-agordeev@redhat.com> In-Reply-To: <1483288652-18983-1-git-send-email-agordeev@redhat.com> References: <1483288652-18983-1-git-send-email-agordeev@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Sun, 01 Jan 2017 16:37:44 +0000 (UTC) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Cc: Radim Krčmář Signed-off-by: Alexander Gordeev --- lib/x86/apic.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/x86/apic.c b/lib/x86/apic.c index aec968ea5a65..c6022acef829 100644 --- a/lib/x86/apic.c +++ b/lib/x86/apic.c @@ -2,6 +2,7 @@ #include "apic.h" #include "msr.h" #include "processor.h" +#include "asm/io.h" static void *g_apic = (void *)0xfee00000; static void *g_ioapic = (void *)0xfec00000; @@ -13,11 +14,6 @@ struct apic_ops { u32 (*id)(void); }; -static void outb(unsigned char data, unsigned short port) -{ - asm volatile ("out %0, %1" : : "a"(data), "d"(port)); -} - void eoi(void) { apic_write(APIC_EOI, 0);