From 8c24e7329fef9f8aa2efe1d144b9b9b81d439280 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Wed, 9 Sep 2020 23:04:40 +0000 Subject: [PATCH] MFC: r365009 r365009 | imp | 2020-08-31 15:04:00 -0600 (Mon, 31 Aug 2020) | 10 lines Add deprecation notice for apm BIOS Add deprecation notice for apm bios, aka the apm(4) device. The apm(8) command will remain, at least for a while, since ACPI emulates the apm ioctl interface. Discussed on: arch@ Relnotes: yes MFC After: 3 days --- share/man/man4/man4.i386/apm.4 | 3 +++ sys/i386/bios/apm.c | 2 ++ 2 files changed, 5 insertions(+) diff --git a/share/man/man4/man4.i386/apm.4 b/share/man/man4/man4.i386/apm.4 index b5ad928cde5..706ab226df3 100644 --- a/share/man/man4/man4.i386/apm.4 +++ b/share/man/man4/man4.i386/apm.4 @@ -19,6 +19,9 @@ .Nd APM BIOS interface .Sh SYNOPSIS .Cd device apm +.Sh DEPRECATION NOTICE +This driver is scheduled for removal prior to the release of +.Fx 13.0 . .Sh DESCRIPTION .Nm is an interface to the Intel / Microsoft APM (Advanced Power Management) BIOS diff --git a/sys/i386/bios/apm.c b/sys/i386/bios/apm.c index b36289a4ee6..b14847d6be9 100644 --- a/sys/i386/bios/apm.c +++ b/sys/i386/bios/apm.c @@ -1214,6 +1214,8 @@ apm_attach(device_t dev) sc->sc_resume.ah_arg = sc; apm_hook_establish(APM_HOOK_RESUME, &sc->sc_resume); + gone_in_dev(dev, 13, "APM support has been removed."); + return 0; } -- 2.45.0