lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4A131247.5010103@redhat.com>
Date:	Tue, 19 May 2009 16:10:47 -0400
From:	Brian Maly <bmaly@...hat.com>
To:	"H. Peter Anvin" <h.peter.anvin@...el.com>
CC:	Ingo Molnar <mingo@...e.hu>,
	Andrew Morton <akpm@...ux-foundation.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"dannf@...com" <dannf@...com>, "Huang, Ying" <ying.huang@...el.com>
Subject: Re: [PATCH] rtc: add x86 support for rtc-efi

H. Peter Anvin wrote:
> Ingo Molnar wrote:
>> * Brian Maly <bmaly@...hat.com> wrote:
>>
>>>> Hm, it would be nice to first unify the relevant bits of 
>>>> arch/x86/kernel/time_{32|64}.c into arch/x86/kernel/time.c, and 
>>>> then we can apply such patches without duplicative effects.
>>> Ingo,
>>>
>>> Are you OK with consolidating this into arch/x86/kernel/rtc.c as 
>>> Huang Ying had suggested? This seems like the most logical place for 
>>> the rtc-efi init to happen, but your suggestion to consolidate this 
>>> into arch/x86/kernel.time.c may have advantages that I am not aware 
>>> of.  Anyway, I would appreciate any insight/opinions on this if you 
>>> have any.  Thanks.
>>
>> Yes, that indeed sounds like an even better place for it.
>>
>
> Furthermore, the EFI RTC code probably should be in its own file.
>
> In fact, arch/x86/kernel really could use more subdirectories; at 
> least the EFI and UV-specific code should be be moved out.
>
>     -hpa
>
Peter,

 How do you think this should be restructured (ideally)?

Maybe create a sub-directory (arch/x86/kernel/rtc) and in this 
sub-directory split the existing rtc.c code into:
(1) rtc.c for common code used by all RTC, 
(2) efi_rtc.c for EFI specific code
(3) cmos_rtc.c for cmos/legacy specific code

Anyone have any objections/concerns with this or perhaps have a better way?

Brian



--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ