Commit 8c0b14cf authored by Jesse Barnes's avatar Jesse Barnes Committed by David Mosberger

[PATCH] ia64: cpumask_t fixes

This patch coverts a few spots to use cpumask_t instead of unsigned
long.
parent 6621ef31
...@@ -1193,7 +1193,7 @@ static void ...@@ -1193,7 +1193,7 @@ static void
ia64_mca_cmc_poll (unsigned long dummy) ia64_mca_cmc_poll (unsigned long dummy)
{ {
/* Trigger a CMC interrupt cascade */ /* Trigger a CMC interrupt cascade */
platform_send_ipi(__ffs(cpu_online_map), IA64_CMCP_VECTOR, IA64_IPI_DM_INT, 0); platform_send_ipi(first_cpu(cpu_online_map), IA64_CMCP_VECTOR, IA64_IPI_DM_INT, 0);
} }
/* /*
...@@ -1260,7 +1260,7 @@ static void ...@@ -1260,7 +1260,7 @@ static void
ia64_mca_cpe_poll (unsigned long dummy) ia64_mca_cpe_poll (unsigned long dummy)
{ {
/* Trigger a CPE interrupt cascade */ /* Trigger a CPE interrupt cascade */
platform_send_ipi(__ffs(cpu_online_map), IA64_CPEP_VECTOR, IA64_IPI_DM_INT, 0); platform_send_ipi(first_cpu(cpu_online_map), IA64_CPEP_VECTOR, IA64_IPI_DM_INT, 0);
} }
/* /*
......
...@@ -187,7 +187,7 @@ static inline void ...@@ -187,7 +187,7 @@ static inline void
ia64_do_profile (struct pt_regs * regs) ia64_do_profile (struct pt_regs * regs)
{ {
unsigned long ip, slot; unsigned long ip, slot;
extern unsigned long prof_cpu_mask; extern cpumask_t prof_cpu_mask;
profile_hook(regs); profile_hook(regs);
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
#include <linux/cache.h> #include <linux/cache.h>
extern volatile char cpu_to_node_map[NR_CPUS] __cacheline_aligned; extern volatile char cpu_to_node_map[NR_CPUS] __cacheline_aligned;
extern volatile unsigned long node_to_cpu_mask[NR_NODES] __cacheline_aligned; extern volatile cpumask_t node_to_cpu_mask[NR_NODES] __cacheline_aligned;
/* Stuff below this line could be architecture independent */ /* Stuff below this line could be architecture independent */
......
...@@ -128,7 +128,7 @@ typedef struct irqpda_s irqpda_t; ...@@ -128,7 +128,7 @@ typedef struct irqpda_s irqpda_t;
* Check if given a compact node id the corresponding node has all the * Check if given a compact node id the corresponding node has all the
* cpus disabled. * cpus disabled.
*/ */
#define is_headless_node(cnode) (!node_to_cpumask(cnode)) #define is_headless_node(cnode) (!any_online_cpu(node_to_cpumask(cnode)))
/* /*
* Check if given a node vertex handle the corresponding node has all the * Check if given a node vertex handle the corresponding node has all the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment