aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/trace.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-10-21 09:19:44 +0200
committerJan Beulich <jbeulich@suse.com>2011-10-21 09:19:44 +0200
commit3cfbbfcf4cb1d4fecfd1c9a8bab090bdb61e993e (patch)
tree02fa5b020be5edebcbc225f9bd6a9d413917055f /xen/common/trace.c
parent20307695e5c22a58b4cce35fba5333375da5a7fa (diff)
downloadxen-3cfbbfcf4cb1d4fecfd1c9a8bab090bdb61e993e.tar.gz
xen-3cfbbfcf4cb1d4fecfd1c9a8bab090bdb61e993e.tar.bz2
xen-3cfbbfcf4cb1d4fecfd1c9a8bab090bdb61e993e.zip
eliminate cpumask accessors referencing NR_CPUS
... in favor of using the new, nr_cpumask_bits-based ones. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/trace.c')
-rw-r--r--xen/common/trace.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/common/trace.c b/xen/common/trace.c
index 8c41990b7a..2253e3114a 100644
--- a/xen/common/trace.c
+++ b/xen/common/trace.c
@@ -70,7 +70,7 @@ static DEFINE_PER_CPU(unsigned long, lost_records_first_tsc);
int tb_init_done __read_mostly;
/* which CPUs tracing is enabled on */
-static cpumask_t tb_cpu_mask = CPU_MASK_ALL;
+static cpumask_t tb_cpu_mask;
/* which tracing events are enabled */
static u32 tb_event_mask = TRC_ALL;
@@ -338,6 +338,7 @@ int trace_will_trace_event(u32 event)
*/
void __init init_trace_bufs(void)
{
+ cpumask_setall(&tb_cpu_mask);
register_cpu_notifier(&cpu_nfb);
if ( opt_tbuf_size )