]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
oprofile: Remove oprofile_multiplexing_init()
authorRobert Richter <robert.richter@amd.com>
Wed, 15 Jul 2009 13:44:18 +0000 (15:44 +0200)
committerRobert Richter <robert.richter@amd.com>
Mon, 20 Jul 2009 14:43:19 +0000 (16:43 +0200)
oprofile_multiplexing_init() can be removed when moving the
initialization of oprofile_time_slice to oprofile_create_files().

Signed-off-by: Robert Richter <robert.richter@amd.com>
drivers/oprofile/oprof.c
drivers/oprofile/oprofile_files.c

index 2b33de7164123956b852461510a2901df376f17e..fa6cccd87cf8e0e3f4e8b454f72891d411e0512d 100644 (file)
@@ -33,7 +33,6 @@ static DEFINE_MUTEX(start_mutex);
 
 static void switch_worker(struct work_struct *work);
 static DECLARE_DELAYED_WORK(switch_work, switch_worker);
-#define TIME_SLICE_DEFAULT             1
 
 #endif
 
@@ -248,23 +247,10 @@ out:
        return err;
 }
 
-#ifdef CONFIG_OPROFILE_EVENT_MULTIPLEX
-
-static void __init oprofile_multiplexing_init(void)
-{
-       oprofile_time_slice = msecs_to_jiffies(TIME_SLICE_DEFAULT);
-}
-
-#endif
-
 static int __init oprofile_init(void)
 {
        int err;
 
-#ifdef CONFIG_OPROFILE_EVENT_MULTIPLEX
-       oprofile_multiplexing_init();
-#endif
-
        err = oprofile_arch_init(&oprofile_ops);
 
        if (err < 0 || timer) {
index 4c5b9477584441c4e23315de24e95242a911e968..bbd7516e0869461c141659004580d509ec5e97a5 100644 (file)
@@ -18,6 +18,7 @@
 #define BUFFER_SIZE_DEFAULT            131072
 #define CPU_BUFFER_SIZE_DEFAULT                8192
 #define BUFFER_WATERSHED_DEFAULT       32768   /* FIXME: tune */
+#define TIME_SLICE_DEFAULT             1
 
 unsigned long oprofile_buffer_size;
 unsigned long oprofile_cpu_buffer_size;
@@ -170,6 +171,7 @@ void oprofile_create_files(struct super_block *sb, struct dentry *root)
        oprofile_buffer_size =          BUFFER_SIZE_DEFAULT;
        oprofile_cpu_buffer_size =      CPU_BUFFER_SIZE_DEFAULT;
        oprofile_buffer_watershed =     BUFFER_WATERSHED_DEFAULT;
+       oprofile_time_slice =           msecs_to_jiffies(TIME_SLICE_DEFAULT);
 
        oprofilefs_create_file(sb, root, "enable", &enable_fops);
        oprofilefs_create_file_perm(sb, root, "dump", &dump_fops, 0666);