* Re: BFS 420: remove for_each_flag_domain
@ 2012-05-23 12:56 Hillf Danton
2012-05-24 11:44 ` [patch] " Hillf Danton
0 siblings, 1 reply; 2+ messages in thread
From: Hillf Danton @ 2012-05-23 12:56 UTC (permalink / raw)
To: LKML, Hillf Danton
The macro, for_each_flag_domain, is no longer used, so remove.
--- a/kernel/sched/bfs.c Mon May 14 20:50:38 2012
+++ b/kernel/sched/bfs.c Wed May 23 20:09:32 2012
@@ -4951,42 +4951,6 @@ void select_nohz_load_balancer(int stop_
}
void set_cpu_sd_state_idle(void) {}
-#if defined(CONFIG_SCHED_MC) || defined(CONFIG_SCHED_SMT)
-/**
- * lowest_flag_domain - Return lowest sched_domain containing flag.
- * @cpu: The cpu whose lowest level of sched domain is to
- * be returned.
- * @flag: The flag to check for the lowest sched_domain
- * for the given cpu.
- *
- * Returns the lowest sched_domain of a cpu which contains the given flag.
- */
-static inline struct sched_domain *lowest_flag_domain(int cpu, int flag)
-{
- struct sched_domain *sd;
-
- for_each_domain(cpu, sd)
- if (sd && (sd->flags & flag))
- break;
-
- return sd;
-}
-
-/**
- * for_each_flag_domain - Iterates over sched_domains containing the flag.
- * @cpu: The cpu whose domains we're iterating over.
- * @sd: variable holding the value of the power_savings_sd
- * for cpu.
- * @flag: The flag to filter the sched_domains to be iterated.
- *
- * Iterates over all the scheduler domains for a given cpu that has the 'flag'
- * set, starting from the lowest sched_domain to the highest.
- */
-#define for_each_flag_domain(cpu, sd, flag) \
- for (sd = lowest_flag_domain(cpu, flag); \
- (sd && (sd->flags & flag)); sd = sd->parent)
-
-#endif /* (CONFIG_SCHED_MC || CONFIG_SCHED_SMT) */
static inline void resched_cpu(int cpu)
{
--
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] BFS 420: remove for_each_flag_domain
2012-05-23 12:56 BFS 420: remove for_each_flag_domain Hillf Danton
@ 2012-05-24 11:44 ` Hillf Danton
0 siblings, 0 replies; 2+ messages in thread
From: Hillf Danton @ 2012-05-24 11:44 UTC (permalink / raw)
To: LKML, Hillf Danton
On Wed, May 23, 2012 at 8:56 PM, Hillf Danton <dhillf@gmail.com> wrote:
> The macro, for_each_flag_domain, is no longer used, so remove.
>
> --- a/kernel/sched/bfs.c Mon May 14 20:50:38 2012
> +++ b/kernel/sched/bfs.c Wed May 23 20:09:32 2012
> @@ -4951,42 +4951,6 @@ void select_nohz_load_balancer(int stop_
> }
>
> void set_cpu_sd_state_idle(void) {}
> -#if defined(CONFIG_SCHED_MC) || defined(CONFIG_SCHED_SMT)
> -/**
> - * lowest_flag_domain - Return lowest sched_domain containing flag.
> - * @cpu: The cpu whose lowest level of sched domain is to
> - * be returned.
> - * @flag: The flag to check for the lowest sched_domain
> - * for the given cpu.
> - *
> - * Returns the lowest sched_domain of a cpu which contains the given flag.
> - */
> -static inline struct sched_domain *lowest_flag_domain(int cpu, int flag)
> -{
> - struct sched_domain *sd;
> -
> - for_each_domain(cpu, sd)
> - if (sd && (sd->flags & flag))
> - break;
> -
> - return sd;
> -}
> -
> -/**
> - * for_each_flag_domain - Iterates over sched_domains containing the flag.
> - * @cpu: The cpu whose domains we're iterating over.
> - * @sd: variable holding the value of the power_savings_sd
> - * for cpu.
> - * @flag: The flag to filter the sched_domains to be iterated.
> - *
> - * Iterates over all the scheduler domains for a given cpu that has the 'flag'
> - * set, starting from the lowest sched_domain to the highest.
> - */
> -#define for_each_flag_domain(cpu, sd, flag) \
> - for (sd = lowest_flag_domain(cpu, flag); \
> - (sd && (sd->flags & flag)); sd = sd->parent)
> -
> -#endif /* (CONFIG_SCHED_MC || CONFIG_SCHED_SMT) */
>
> static inline void resched_cpu(int cpu)
> {
> --
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-05-24 11:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-23 12:56 BFS 420: remove for_each_flag_domain Hillf Danton
2012-05-24 11:44 ` [patch] " Hillf Danton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).