Remove all trailing whitespace.

My editor automatically catches a lot of these, so I thought I'd just
include them all in one patch.

Signed-off-by: Kevin Corry <[EMAIL PROTECTED]>
Signed-off-by: Carl Love <[EMAIL PROTECTED]>

Index: linux-2.6.21-perfmon1/arch/i386/perfmon/perfmon.c
===================================================================
--- linux-2.6.21-perfmon1.orig/arch/i386/perfmon/perfmon.c
+++ linux-2.6.21-perfmon1/arch/i386/perfmon/perfmon.c
@@ -627,7 +627,7 @@ void pfm_arch_start(struct task_struct *
 {
        struct pfm_arch_context *ctx_arch;
        u64 *mask;
-       u16 i, num; 
+       u16 i, num;
 
        /*
         * pfm_start issue while context is masked as no effect.
Index: linux-2.6.21-perfmon1/arch/mips/perfmon/perfmon.c
===================================================================
--- linux-2.6.21-perfmon1.orig/arch/mips/perfmon/perfmon.c
+++ linux-2.6.21-perfmon1/arch/mips/perfmon/perfmon.c
@@ -281,14 +281,14 @@ char *pfm_arch_get_pmu_module_name(void)
        return NULL;
 }
 
-int perfmon_perf_irq(void) 
+int perfmon_perf_irq(void)
 {
   /* BLATANTLY STOLEN FROM OPROFILE, then modified */
   struct pt_regs *regs;
   unsigned int counters = pfm_pmu_conf->max_pmc;
   unsigned int control;
   unsigned int counter;
-  
+
   regs = get_irq_regs();
   switch (counters) {
 #define HANDLE_COUNTER(n)                                              \
@@ -306,7 +306,7 @@ int perfmon_perf_irq(void) 
       HANDLE_COUNTER(1)
       HANDLE_COUNTER(0)
       }
-  
+
   return 0;
 }
 EXPORT_SYMBOL(perfmon_perf_irq);
Index: linux-2.6.21-perfmon1/include/asm-i386/perfmon_pebs_smpl.h
===================================================================
--- linux-2.6.21-perfmon1.orig/include/asm-i386/perfmon_pebs_smpl.h
+++ linux-2.6.21-perfmon1/include/asm-i386/perfmon_pebs_smpl.h
@@ -104,7 +104,7 @@ struct pfm_pebs_smpl_arg {
  * way to report on the number of valid entries recorded by the CPU.
  * This is required when the buffer is not full, i..e, there was not
  * PMU interrupt.
- * 
+ *
  * Layout of the structure is mandated by hardware and specified in
  * the Intel documentation.
  */
Index: linux-2.6.21-perfmon1/include/asm-ia64/perfmon.h
===================================================================
--- linux-2.6.21-perfmon1.orig/include/asm-ia64/perfmon.h
+++ linux-2.6.21-perfmon1/include/asm-ia64/perfmon.h
@@ -61,7 +61,7 @@
  * For some CPUs, the upper bits of a counter must be set in order for the
  * overflow interrupt to happen. On overflow, the counter has wrapped around,
  * and the upper bits are cleared. This function may be used to set them 
back.
- */ 
+ */
 static inline void pfm_arch_ovfl_reset_pmd(struct pfm_context *ctx, unsigned 
int cnum)
 {}
 
@@ -146,7 +146,7 @@ static inline void pfm_arch_write_pmc(st
  *
  * Tracking of this information is normally done by pfm_start/pfm_stop
  * in flags.started. Here we need to compensate by checking actual
- * psr bit. 
+ * psr bit.
  */
 static inline int pfm_arch_is_active(struct pfm_context *ctx)
 {
Index: linux-2.6.21-perfmon1/perfmon/perfmon.c
===================================================================
--- linux-2.6.21-perfmon1.orig/perfmon/perfmon.c
+++ linux-2.6.21-perfmon1/perfmon/perfmon.c
@@ -5,7 +5,7 @@
  * provides access to the hardware performance counters
  * of the host processor.
  *
- * 
+ *
  * The initial version of perfmon.c was written by
  * Ganesh Venkitachalam, IBM Corp.
  *
@@ -211,7 +211,7 @@ static void pfm_unmask_monitoring(struct
         * we need to restore the PMDs because they
         * may have been modified by user while MASKED in which
         * case the actual registers were not updated
-        * 
+        *
         * XXX: could be avoided in system-wide mode
         */
        pfm_arch_restore_pmds(ctx, set);
@@ -728,7 +728,7 @@ int pfm_ovfl_notify_user(struct pfm_cont
  * was attached vs was forked/execd.
  *
  * This function appends the 'end' notification message to the
- * queue. 
+ * queue.
  *
  * the context must be locked and interrupts disabled.
  */
@@ -1262,7 +1262,7 @@ int __pfm_load_context(struct pfm_contex
                set->flags);
 
        /*
-        * per-thread: 
+        * per-thread:
         *   - task to attach to is checked in sys_pfm_load_context() to avoid
         *     locking issues. if found, and not self,  task refcount was 
incremented.
         */
Index: linux-2.6.21-perfmon1/perfmon/perfmon_ctxsw.c
===================================================================
--- linux-2.6.21-perfmon1.orig/perfmon/perfmon_ctxsw.c
+++ linux-2.6.21-perfmon1/perfmon/perfmon_ctxsw.c
@@ -259,7 +259,7 @@ static void __pfm_ctxswout_thread(struct
  * case of close issued on another CPU, an IPI is sent but
  * this routine runs with interrupts masked, so we are
  * protected
- * 
+ *
  * On some architectures, such as IA-64, it may be necessary
  * to intervene during the context even in system-wide mode
  * to modify some machine state.
Index: linux-2.6.21-perfmon1/perfmon/perfmon_file.c
===================================================================
--- linux-2.6.21-perfmon1.orig/perfmon/perfmon_file.c
+++ linux-2.6.21-perfmon1/perfmon/perfmon_file.c
@@ -150,7 +150,7 @@ static void pfm_buf_map_close(struct vm_
 
 /*
  * we do not have a close callback because, the locked
- * memory accounting must be done when the actual buffer 
+ * memory accounting must be done when the actual buffer
  * is freed. Munmap does not free the page backing the vma
  * because they may still be in use by the PMU interrupt handler.
  */
@@ -479,7 +479,7 @@ static void __pfm_close_remote_cpu(void 
        /*
         * we are in IPI interrupt handler which has always higher
         * priority than PMU interrupt, therefore we do not need to
-        * mask interrupts. context locking is not needed because we 
+        * mask interrupts. context locking is not needed because we
         * are in close(), no more user references.
         *
         * can_release is ignored, release done on calling CPU
Index: linux-2.6.21-perfmon1/perfmon/perfmon_intr.c
===================================================================
--- linux-2.6.21-perfmon1.orig/perfmon/perfmon_intr.c
+++ linux-2.6.21-perfmon1/perfmon/perfmon_intr.c
@@ -51,7 +51,7 @@ static inline void pfm_mask_monitoring(s
 
        /*
         * we save the PMD values such that we can read them while
-        * MASKED without having to have the thread stopped which 
+        * MASKED without having to have the thread stopped which
         * is uncessary because monitoring is stopped
         *
         * XXX: could be avoided in system-wide
Index: linux-2.6.21-perfmon1/perfmon/perfmon_pmu.c
===================================================================
--- linux-2.6.21-perfmon1.orig/perfmon/perfmon_pmu.c
+++ linux-2.6.21-perfmon1/perfmon/perfmon_pmu.c
@@ -336,7 +336,7 @@ unlock:
                PFM_INFO("register %s PMU error %d", cfg->pmu_name, ret);
        } else {
                PFM_INFO("%s PMU installed", cfg->pmu_name);
-               /* 
+               /*
                 * (re)initialize PMU on each PMU now that we have a description
                 */
                on_each_cpu(__pfm_init_percpu, cfg, 0, 0);
@@ -422,7 +422,7 @@ int pfm_pmu_conf_get(int autoload)
                 * may not have registered properly so we need
                 * to check
                 */
-       } 
+       }
 
        ret = pfm_pmu_conf == NULL ? -ENOSYS : 0;
        if (!ret && pmu_is_module(pfm_pmu_conf)
Index: linux-2.6.21-perfmon1/perfmon/perfmon_res.c
===================================================================
--- linux-2.6.21-perfmon1.orig/perfmon/perfmon_res.c
+++ linux-2.6.21-perfmon1/perfmon/perfmon_res.c
@@ -190,7 +190,7 @@ unres:
  * the lock but this is exit so there is no task->mm by the time we come 
here.
  *
  * The mmap_nlock is set only when unmapping and this is the LAST reference
- * to the file (i.e., close() followed by munmap()). 
+ * to the file (i.e., close() followed by munmap()).
  */
 void pfm_release_buf_space(struct pfm_context *ctx, size_t size)
 {
Index: linux-2.6.21-perfmon1/perfmon/perfmon_rw.c
===================================================================
--- linux-2.6.21-perfmon1.orig/perfmon/perfmon_rw.c
+++ linux-2.6.21-perfmon1/perfmon/perfmon_rw.c
@@ -44,7 +44,7 @@
                                 PFM_REGFL_OVFL_NOTIFY| \
                                 PFM_REG_RETFL_MASK)
 /*
- * function called from sys_pfm_write_pmds() to write the 
+ * function called from sys_pfm_write_pmds() to write the
  * requested PMD registers. The function succeeds whether the context is
  * attached or not. When attached to another thread, that thread must be
  * stopped.
@@ -318,7 +318,7 @@ error:
 }
 
 /*
- * function called from sys_pfm_write_pmcs() to write the 
+ * function called from sys_pfm_write_pmcs() to write the
  * requested PMC registers. The function succeeds whether the context is
  * attached or not. When attached to another thread, that thread must be
  * stopped.
Index: linux-2.6.21-perfmon1/perfmon/perfmon_syscalls.c
===================================================================
--- linux-2.6.21-perfmon1.orig/perfmon/perfmon_syscalls.c
+++ linux-2.6.21-perfmon1/perfmon/perfmon_syscalls.c
@@ -123,7 +123,7 @@ int pfm_get_task(struct pfm_context *ctx
        /*
         * When attaching to another thread we must ensure
         * that the thread is actually stopped. Just like with
-        * perfmon system calls, we enforce that the thread 
+        * perfmon system calls, we enforce that the thread
         * be ptraced and STOPPED by using ptrace_check_attach().
         *
         * As a consequence, only the ptracing parent can actually
@@ -189,7 +189,7 @@ recheck:
        state = ctx->state;
        local_flags = *flags;
 
-       PFM_DBG("state=%d check_mask=0x%x", state, check_mask); 
+       PFM_DBG("state=%d check_mask=0x%x", state, check_mask);
        /*
         * if the context is detached, then we do not touch
         * hardware, therefore there is not restriction on when we can
Index: linux-2.6.21-perfmon1/perfmon/perfmon_sysfs.c
===================================================================
--- linux-2.6.21-perfmon1.orig/perfmon/perfmon_sysfs.c
+++ linux-2.6.21-perfmon1/perfmon/perfmon_sysfs.c
@@ -545,14 +545,14 @@ PFM_DECL_STATS_ATTR(ccnt6);
  * per-reg attributes
  */
 static ssize_t name_show(void *info, char *buf)
-{ 
+{
        struct pfm_reg_desc *reg = info;
        return snprintf(buf, PAGE_SIZE, "%s\n", reg->desc);
 }
 static PFM_RO_ATTR(name);
 
 static ssize_t dfl_val_show(void *info, char *buf)
-{ 
+{
        struct pfm_reg_desc *reg = info;
        return snprintf(buf, PAGE_SIZE, "0x%llx\n",
                        (unsigned long long)reg->dfl_val);
@@ -560,7 +560,7 @@ static ssize_t dfl_val_show(void *info, 
 static PFM_RO_ATTR(dfl_val);
 
 static ssize_t rsvd_msk_show(void *info, char *buf)
-{ 
+{
        struct pfm_reg_desc *reg = info;
        return snprintf(buf, PAGE_SIZE, "0x%llx\n",
                        (unsigned long long)reg->rsvd_msk);
@@ -568,7 +568,7 @@ static ssize_t rsvd_msk_show(void *info,
 static PFM_RO_ATTR(rsvd_msk);
 
 static ssize_t width_show(void *info, char *buf)
-{ 
+{
        struct pfm_reg_desc *reg = info;
        int w;
 
@@ -580,7 +580,7 @@ static PFM_RO_ATTR(width);
 
 
 static ssize_t addr_show(void *info, char *buf)
-{ 
+{
        struct pfm_reg_desc *reg = info;
        return snprintf(buf, PAGE_SIZE, "0x%lx\n", reg->hw_addr);
 }
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/

Reply via email to