On 2014-06-19 09:47, Lan Tianyu wrote: > On 2014年06月19日 14:32, Lan Tianyu wrote: >> On 2014年06月19日 07:17, Rafael J. Wysocki wrote: >>> On Wednesday, June 18, 2014 10:28:12 PM Sorin Manolache wrote: >>>> Hello, >>>> >>>> Would it be worth considering re-enabling the old procfs interface for >>>> ac.c? There are old tools still around (kpowersave from kde 3.5.10) that >>>> expect /proc/acpi/ac_adapter. >>> >>> Can you please CC ACPI-related messages to linux-acpi@vger.kernel.org? >>> >>> I'm not sure how much effort that would require at this point. Rui, Tianyu? >> >> I think we need to revert commit ab0fd67. >> >> commit ab0fd674d6cef0904baa511f22613ef6474f8169 >> Author: Lan Tianyu >> Date: Sat Oct 12 21:04:48 2013 +0800 >> >> ACPI / AC: Remove AC's proc directory. >> >> AC's proc directory is not used and so remove it. Prepare for removing >> /proc/acpi directory. >> >> Signed-off-by: Lan Tianyu >> Signed-off-by: Rafael J. Wysocki >> > > Hi Sorin: > Please try the patch in the attachment. > Hello Tianyu, I've applied the patch to 3.15.1. The code did not compile because of ac->adev in acpi_ac_add_fs and acpi_ac_remove_fs. The acpi_ac structure contains a field "device" and not "adev". So I've modified the patch and I've attached it. Now it works. Thank you, Sorin >> >>> >>> Rafael >>> >> >> > >