Re: [RFC 8/8] Optimize mempolicies for a single zone

Andi Kleen
2006-07-08T00:23:53Z

> +#ifndef SINGLE_ZONE
> +#define policy_zone ZONE_NORMAL
> +#else
> extern int policy_zone;
> +#endif
>
> static inline void check_highest_zone(int k)
> {
> +#ifndef SINGLE_ZONE
> if (k > policy_zone)
> policy_zone = k;
> +#endif

This looks ugly. What's wrong the simple variable?

-Andi