~ubuntu-branches/ubuntu/natty/linux-fsl-imx51/natty

« back to all changes in this revision

Viewing changes to arch/arm/plat-s3c24xx/pwm.c

  • Committer: Bazaar Package Importer
  • Author(s): Tim Gardner
  • Date: 2009-08-17 08:29:47 UTC
  • Revision ID: james.westby@ubuntu.com-20090817082947-q3fjbfrs57ct6ixj
Tags: 2.6.31-100.3
* UBUNTU: [Config] Produce headers packages of the form linux-headers-2.6.31-ABI
* UBUNTU: Bump ABI to 100 in order to avoid collisions with other kernel packages
* UBUNTU: [Config] Removed libc-dev from the control file
* UBUNTU: [Config] Implement abstracted debian build for fsl-imx51

Show diffs side-by-side

added added

removed removed

Lines of Context:
246
246
 
247
247
        tcmp = duty_ns / tin_ns;
248
248
        tcmp = tcnt - tcmp;
 
249
        /* the pwm hw only checks the compare register after a decrement,
 
250
           so the pin never toggles if tcmp = tcnt */
 
251
        if (tcmp == tcnt)
 
252
                tcmp--;
249
253
 
250
254
        pwm_dbg(pwm, "tin_ns=%lu, tcmp=%ld/%lu\n", tin_ns, tcmp, tcnt);
251
255