Skip to content

Commit 8b3c9b1

Browse files
swahlhpeKAGA-KOKO
authored andcommitted
x86/platform/uv: Remove support for UV1 platform from uv_time
UV1 is not longer supported Signed-off-by: Steve Wahl <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
1 parent 11ba468 commit 8b3c9b1

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

arch/x86/platform/uv/uv_time.c

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ static void uv_rtc_send_IPI(int cpu)
7474

7575
apicid = cpu_physical_id(cpu);
7676
pnode = uv_apicid_to_pnode(apicid);
77-
apicid |= uv_apicid_hibits;
7877
val = (1UL << UVH_IPI_INT_SEND_SHFT) |
7978
(apicid << UVH_IPI_INT_APIC_ID_SHFT) |
8079
(X86_PLATFORM_IPI_VECTOR << UVH_IPI_INT_VECTOR_SHFT);
@@ -85,10 +84,7 @@ static void uv_rtc_send_IPI(int cpu)
8584
/* Check for an RTC interrupt pending */
8685
static int uv_intr_pending(int pnode)
8786
{
88-
if (is_uv1_hub())
89-
return uv_read_global_mmr64(pnode, UVH_EVENT_OCCURRED0) &
90-
UV1H_EVENT_OCCURRED0_RTC1_MASK;
91-
else if (is_uvx_hub())
87+
if (is_uvx_hub())
9288
return uv_read_global_mmr64(pnode, UVXH_EVENT_OCCURRED2) &
9389
UVXH_EVENT_OCCURRED2_RTC_1_MASK;
9490
return 0;
@@ -98,19 +94,15 @@ static int uv_intr_pending(int pnode)
9894
static int uv_setup_intr(int cpu, u64 expires)
9995
{
10096
u64 val;
101-
unsigned long apicid = cpu_physical_id(cpu) | uv_apicid_hibits;
97+
unsigned long apicid = cpu_physical_id(cpu);
10298
int pnode = uv_cpu_to_pnode(cpu);
10399

104100
uv_write_global_mmr64(pnode, UVH_RTC1_INT_CONFIG,
105101
UVH_RTC1_INT_CONFIG_M_MASK);
106102
uv_write_global_mmr64(pnode, UVH_INT_CMPB, -1L);
107103

108-
if (is_uv1_hub())
109-
uv_write_global_mmr64(pnode, UVH_EVENT_OCCURRED0_ALIAS,
110-
UV1H_EVENT_OCCURRED0_RTC1_MASK);
111-
else
112-
uv_write_global_mmr64(pnode, UVXH_EVENT_OCCURRED2_ALIAS,
113-
UVXH_EVENT_OCCURRED2_RTC_1_MASK);
104+
uv_write_global_mmr64(pnode, UVXH_EVENT_OCCURRED2_ALIAS,
105+
UVXH_EVENT_OCCURRED2_RTC_1_MASK);
114106

115107
val = (X86_PLATFORM_IPI_VECTOR << UVH_RTC1_INT_CONFIG_VECTOR_SHFT) |
116108
((u64)apicid << UVH_RTC1_INT_CONFIG_APIC_ID_SHFT);

0 commit comments

Comments
 (0)