Date: Tue, 1 Sep 2020 01:57:56 +0000 (UTC) From: Brandon Bergren <bdragon@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r365021 - head/sys/powerpc/powerpc Message-ID: <202009010157.0811vumT099667@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bdragon Date: Tue Sep 1 01:57:56 2020 New Revision: 365021 URL: https://svnweb.freebsd.org/changeset/base/365021 Log: [PowerPC] Remove unused openpic_set_priority(). When SMP support for powerpc was added in r178628, the last callers of this function were removed. All code that needs to manipulate the task priority just does it directly instead. Noticed while reading through the lint logs. Sponsored by: Tag1 Consulting, Inc. Modified: head/sys/powerpc/powerpc/openpic.c Modified: head/sys/powerpc/powerpc/openpic.c ============================================================================== --- head/sys/powerpc/powerpc/openpic.c Tue Sep 1 01:12:55 2020 (r365020) +++ head/sys/powerpc/powerpc/openpic.c Tue Sep 1 01:57:56 2020 (r365021) @@ -73,21 +73,6 @@ openpic_write(struct openpic_softc *sc, u_int reg, uin bus_space_write_4(sc->sc_bt, sc->sc_bh, reg, val); } -static __inline void -openpic_set_priority(struct openpic_softc *sc, int pri) -{ - u_int tpr; - uint32_t x; - - sched_pin(); - tpr = OPENPIC_PCPU_TPR((sc->sc_dev == root_pic) ? PCPU_GET(cpuid) : 0); - x = openpic_read(sc, tpr); - x &= ~OPENPIC_TPR_MASK; - x |= pri; - openpic_write(sc, tpr, x); - sched_unpin(); -} - int openpic_common_attach(device_t dev, uint32_t node) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009010157.0811vumT099667>