Re: [PATCH v4] pm_ops: add system quiesce/activate hooks

Benjamin Herrenschmidt
2007-04-15T00:19:42Z

> On the other hand, if doing an arch hook here and something like
> CONFIG_ARCH_HAS_SUSPEND_IRQ_HOOKS would actually allow us to end this
> pointless discussion, then why not.

The preferred approach for that sort of thing nowadays is to have
the generic code contain

#ifndef arch_foo_bar()
#define arch_foo_bar() do { } while(0)
#endif

And have the arch code do

void arch_foo_bar(void)
{
xxx
}
#define arch_foo_bar arch_foo_bar

Ben.