From nobody Thu Aug 03 21:02:43 2023 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RH1Wm1Rx8z4V0gB; Thu, 3 Aug 2023 21:02:44 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RH1Wl6N1Gz3ML2; Thu, 3 Aug 2023 21:02:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691096563; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VVC1vLWqP1ETS3MGmg8wYSX7rjiSbqhbmalQqgUk1ts=; b=unLsZCmQBlQ0/RL+aeid9sEL3ZOokpxox+pbDWtcGYSy3RyFGwVefytB0915w5YSWKL7KT NNFTDiayw8fNjaKlIMV3SkVoy0ZM3tbxF2Pjt9a1CFH8MUAvBkZJz31B+4C5wxVA17IBsX mlcPKxrtBRxHXa/8nh15JUrA9ynvn+M8sKrpnrNQVCYT0fuPF6buCedSatOx4JjVJrYD3o mPVYWwcxhtN6OGIjgvekNGukg8PnaAdoEls/AOqz3twIRyGEbUydzHs5NsdC0vdqRGXR4q XLzbbmMtUaAL8CY07FoX5nZLXRLimZ9BU2yIzCi3fRUlaaQKplJB07W06vWGRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1691096563; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=VVC1vLWqP1ETS3MGmg8wYSX7rjiSbqhbmalQqgUk1ts=; b=TAReZp2L+ScrYHDwMT/62Q1HROAk0p0H6Tvm0WNIlvaZLgJX4BKFkWJZxFf3ncVOBSsUbh 5fIB7SgbowW3JCurryqdF51IzwBFPjEhMMKLKVQroVJP+u7jrzrDE+nWYeY0BHWX5XVr1m 9U0h+WaEfK+kpVO6t9k4Mbczpr3KnPXtQtY3j84XpTI3x2AC7harToZ3b6r5R2wu/j4seg QTT3izujUFfN47Tlrk1K2tRZxmPmwKpq+zqlq2Dt5L4ZVWMXH23f99bTBamhFJ4jfqlqtD DGsF2hTgY5eA1Lz5QXRlmv3sloDCI7gX/P9p5McJtWcQrchk2/G4KuE2mXKlIg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1691096563; a=rsa-sha256; cv=none; b=A8Q4qUmPZqCT2X0ZXpZsA4VSWSwn4v78EjGuetENiKWwAw1DyKLcFGGK/FxJT49k7LdT6O UuArc+5leS6ifBAatY+I5ZP9+68fmtP0/4iRWDZiYZuIJL6WLk+mZ9S10dkIUcvYvu2MEG xJ//8gYeX8YNvaZe/CowlGK92ZdiEpdvVY5UHhT8Lgd0JNx7rpgYGG0p4rcI7wF31DNGAi KKJ0Zn1rvGCNLuYFj5shTB9ivv+IOoRPtX/ijkSWIYunJ8Nz3X9Y4XUb/Yh5rAFaac+t1K 7xFVDvUurZRp4k7GWlDoUz9S24njDXuqqHXE37PURK/J/oTS9f1BJ2sbt/Qchg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4RH1Wl5QgFzbxm; Thu, 3 Aug 2023 21:02:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 373L2hUW087753; Thu, 3 Aug 2023 21:02:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 373L2h14087752; Thu, 3 Aug 2023 21:02:43 GMT (envelope-from git) Date: Thu, 3 Aug 2023 21:02:43 GMT Message-Id: <202308032102.373L2h14087752@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: eee6537665ae - main - x86: remove intr_bind List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: eee6537665ae9830e831d7473dedd6b2cc81c2ea Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=eee6537665ae9830e831d7473dedd6b2cc81c2ea commit eee6537665ae9830e831d7473dedd6b2cc81c2ea Author: Elliott Mitchell AuthorDate: 2022-10-07 03:23:34 +0000 Commit: Ed Maste CommitDate: 2023-08-03 21:01:56 +0000 x86: remove intr_bind `intr_bind(u_int vector, u_char cpu);` looked suspicious since everywhere else "cpu" is a u_int and >256 processors isn't unreasonable now. `intr_bind()` is not used anywhere in FreeBSD (now, after commit bf42f3738087). Time to remove. Relnotes: Yes Reviewed by: mjg Differential Revision: https://reviews.freebsd.org/D36901 --- sys/x86/include/intr_machdep.h | 3 --- sys/x86/x86/intr_machdep.c | 12 ------------ 2 files changed, 15 deletions(-) diff --git a/sys/x86/include/intr_machdep.h b/sys/x86/include/intr_machdep.h index 933552c7dd7e..69d626d9874b 100644 --- a/sys/x86/include/intr_machdep.h +++ b/sys/x86/include/intr_machdep.h @@ -143,9 +143,6 @@ void intr_add_cpu(u_int cpu); int intr_add_handler(const char *name, int vector, driver_filter_t filter, driver_intr_t handler, void *arg, enum intr_type flags, void **cookiep, int domain); -#ifdef SMP -int intr_bind(u_int vector, u_char cpu); -#endif int intr_config_intr(int vector, enum intr_trigger trig, enum intr_polarity pol); int intr_describe(u_int vector, void *ih, const char *descr); diff --git a/sys/x86/x86/intr_machdep.c b/sys/x86/x86/intr_machdep.c index 6413d8aadd73..524258ef7dc8 100644 --- a/sys/x86/x86/intr_machdep.c +++ b/sys/x86/x86/intr_machdep.c @@ -630,18 +630,6 @@ intr_next_cpu(int domain) return (apic_id); } -/* Attempt to bind the specified IRQ to the specified CPU. */ -int -intr_bind(u_int vector, u_char cpu) -{ - struct intsrc *isrc; - - isrc = intr_lookup_source(vector); - if (isrc == NULL) - return (EINVAL); - return (intr_event_bind(isrc->is_event, cpu)); -} - /* * Add a CPU to our mask of valid CPUs that can be destinations of * interrupts.