Re: [PATCH #repost] SCSI: megaraid, fix suspend/resume sections

From: James Bottomley
Date: Fri May 02 2008 - 11:04:00 EST


On Fri, 2008-05-02 at 17:01 +0200, Jiri Slaby wrote:
> James Bottomley napsal(a):
> >>> could we not at least make the machinery do something vaguely
> >>> useful and expand it to confine the pm routines to sections which can be
> >>> discarded if CONFIG_PM is n?
> >> a) it would need to be discarded at link-time, ideally.
> >
> > Yes, the same way the exit sections are: as linker discards. We also
> > have the mechanics for runtime discards which is useful for modules
>
> No it doesn't, exits are discarded at runtime only. At least on x86.

No what doesn't? I said we have the mechanics to discard both at link
and at run time.

I think you'll find that .exitcall.exit is link time discarded on x86
and the others are runtime discarded.

James


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