linux_dsm_epyc7002/drivers/acpi/sleep
Signed-off by Yi Yang 975c30257e ACPI: detect invalid argument written to /proc/acpi/alarm
/proc/acpi/alarm can't be set correctly, here is a sample:

[root@localhost /]# echo "2006 09" > /proc/acpi/alarm
[root@localhost /]# cat /proc/acpi/alarm
2007-12-09 09:09:09
[root@localhost /]# echo "2006 04" > /proc/acpi/alarm
[root@localhost /]# cat /proc/acpi/alarm
2007-12-04 04:04:04
[root@localhost /]#

Obviously, it is wrong, it should consider it as an invalid input.

after this patch:

[root@localhost /]# echo "2008 09" > /proc/acpi/alarm
-bash: echo: write error: Invalid argument
[root@localhost /]#

Signed-off-by: Yi Yang <yi.y.yang@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
2007-12-27 22:19:27 -05:00
..
main.c ACPI: suspend: Wrong order of GPE restore. 2007-10-25 16:31:30 -04:00
Makefile ACPI: CONFIG_ACPI_SLEEP=n power off regression in 2.6.23-rc8 (NOT in rc7) 2007-09-25 17:58:52 -04:00
proc.c ACPI: detect invalid argument written to /proc/acpi/alarm 2007-12-27 22:19:27 -05:00
sleep.h ACPI: Hibernate erroneously disabled Suspend wakeup devices 2007-09-27 15:47:44 -04:00
wakeup.c ACPI: Hibernate erroneously disabled Suspend wakeup devices 2007-09-27 15:47:44 -04:00