Tim Bird | 8 Feb 03:21
Picon

[PATCH 1/5] logger: Change logger_offset() from macro to function

Convert to function and add log as a parameter, rather than relying
on log in the context of the macro.

Signed-off-by: Tim Bird <tim.bird <at> am.sony.com>
---
 drivers/staging/android/logger.c |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/drivers/staging/android/logger.c b/drivers/staging/android/logger.c
index ffc2d04..92456d7 100644
--- a/drivers/staging/android/logger.c
+++ b/drivers/staging/android/logger.c
@@ -60,7 +60,11 @@ struct logger_reader {
 };

 /* logger_offset - returns index 'n' into the log via (optimized) modulus */
-#define logger_offset(n)	((n) & (log->size - 1))
+size_t logger_offset(struct logger_log *log, size_t n)
+{
+	return n & (log->size-1);
+}
+

 /*
  * file_get_log - Given a file structure, return the associated log
@@ -137,7 +141,7 @@ static ssize_t do_read_log_to_user(struct logger_log *log,
 		if (copy_to_user(buf + len, log->buffer, count - len))
 			return -EFAULT;

-	reader->r_off = logger_offset(reader->r_off + count);
(Continue reading)

Tim Bird | 8 Feb 03:32
Picon

[PATCH 4/5] logger: clarify code in clock_interval

Add commentary, rename the function and make the code easier to read.

Signed-off-by: Tim Bird <tim.bird <at> am.sony.com>
---
 drivers/staging/android/logger.c |   28 ++++++++++++++++++++--------
 1 files changed, 20 insertions(+), 8 deletions(-)

diff --git a/drivers/staging/android/logger.c b/drivers/staging/android/logger.c
index 54b7cdf..8d9d4f1 100644
--- a/drivers/staging/android/logger.c
+++ b/drivers/staging/android/logger.c
@@ -242,16 +242,28 @@ static size_t get_next_entry(struct logger_log *log, size_t off, size_t len)
 }

 /*
- * clock_interval - is a < c < b in mod-space? Put another way, does the line
- * from a to b cross c?
+ * is_between - is a < c < b, accounting for wrapping of a, b, and c
+ *    positions in the buffer
+ *
+ * That is, if a<b, check for c between a and b
+ * and if a>b, check for c outside (not between) a and b
+ *
+ * |------- a xxxxxxxx b --------|
+ *               c^
+ *
+ * |xxxxx b --------- a xxxxxxxxx|
+ *    c^
+ *  or                    c^
  */
(Continue reading)

Frank Rowand | 8 Feb 04:22
Picon

Re: [PATCH 1/5] logger: Change logger_offset() from macro to function

On 02/07/12 18:21, Tim Bird wrote:
> Convert to function and add log as a parameter, rather than relying
> on log in the context of the macro.
> 
> Signed-off-by: Tim Bird <tim.bird <at> am.sony.com>
> ---
>  drivers/staging/android/logger.c |   16 ++++++++++------
>  1 files changed, 10 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/staging/android/logger.c b/drivers/staging/android/logger.c
> index ffc2d04..92456d7 100644
> --- a/drivers/staging/android/logger.c
> +++ b/drivers/staging/android/logger.c
> @@ -60,7 +60,11 @@ struct logger_reader {
>  };
> 
>  /* logger_offset - returns index 'n' into the log via (optimized) modulus */
> -#define logger_offset(n)	((n) & (log->size - 1))
> +size_t logger_offset(struct logger_log *log, size_t n)
> +{
> +	return n & (log->size-1);

        return n & (log->size - 1);
> +}
> +

Reviewed-by: Frank Rowand <frank.rowand <at> am.sony.com>

woody | 8 Feb 10:54
Picon

Cloud server solutions - more stable, powerful, flexible and cheap

Have a nice day

We are one of the top Cloud Solution provider base in Hong Kong, with over 10+ years experience,
we providing better than good and lower cost service of CLoud Hosting (Cloud Server / Hosting / CDN)

Starting at $1.99, let's come to experience and enjoy our powerful cloud system.

Thanks for your time and appreciated to look arround our website.

http://www.dedicatedserver.com.hk/ 

Best Regards,
The 36cloud Team

If you do not wish to further receive this event message, email "subscriber <at> dedicatedserver.com.hk" to
unsubscribe this message or revoe your email from the list.

@@@ | 8 Feb 14:50
Picon

Run Your Dedicated Server with Sufficient IP

With servers located off-site, enterprises can devote all their bandwidth resources to company email
communication, file transfer, networked applications, and other Internet needs.
Our dedicated server plan include:

o    7/24/365 Support via Helpdesk
o    Plesk Panel
o    IPV4 / IPV6
o    Unlimited FTP accounts
o    Unlimited Email Accounts
o    Unlimited datatransfer bandwidth
o    PHP 5
o    Spam Assassin
o    Allow multi-domain hosting
o    Daily/Weekly Backup

For more details, please send email to boris <at> dedicatedserver.com.hk

Best Regards,
Boris Lam
Senior Sales Executive
Dedicated Server Hong Kong
Mobile: (852)9408 8762

PRIVATE MAIL | 8 Feb 20:55
Picon

Greetings


Good-day.

This is a personal email directed to you for your consideration alone, I request that it remain and be
treated as such only. Please bear with me for now and do not ask my name. I am a banker with HSBC in the Malta. I
have an interesting business proposal for you that will be of immense benefit to both of us. Although this
may be hard for you to believe, we stand to gain 7.2 million USD between us in a matter of days. Please grant me
the benefit of doubt and hear me out. I need you to signify your interest by replying to this email.

Most importantly, I will need you to promise to keep whatever you learn from me between us even if you decide
not to go along with me. I will make more details available to you on receipt of a positive response from you.
Do contact me only at my private emailaddress:privatepot5 <at> live.co.uk

Warm regard from Malta.

Dima Zavin | 9 Feb 06:56
Favicon

Re: [PATCH 3/5] logger: reorder prepare_to_wait and mutex_lock

On Tue, Feb 7, 2012 at 6:30 PM, Tim Bird <tim.bird <at> am.sony.com> wrote:
> If mutex_lock waits, it will return in state TASK_RUNNING,
> rubbing out the effect of prepare_to_wait().
>
> Signed-off-by: Tim Bird <tim.bird <at> am.sony.com>

Acked-by: Dima Zavin <dima <at> android.com>

> ---
>  drivers/staging/android/logger.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/staging/android/logger.c b/drivers/staging/android/logger.c
> index 92cfd94..54b7cdf 100644
> --- a/drivers/staging/android/logger.c
> +++ b/drivers/staging/android/logger.c
> @@ -172,9 +172,10 @@ static ssize_t logger_read(struct file *file, char __user *buf,
>
>  start:
>        while (1) {
> +               mutex_lock(&log->mutex);
> +
>                prepare_to_wait(&log->wq, &wait, TASK_INTERRUPTIBLE);
>
> -               mutex_lock(&log->mutex);
>                ret = (log->w_off == reader->r_off);
>                mutex_unlock(&log->mutex);
>                if (!ret)
> --
> 1.7.2.3
(Continue reading)

boris | 9 Feb 16:59
Picon

Datacenter Colocation Service in Hong Kong

Dear All,

Our Data center:

Over 20,000ft Data Center in Hong Kong (Kowloon side) with Control Center

Holds Certificate of ISO/IEC 27001:2005

Standard of TIA-942 Tier 3+ Facilities

-          FM200 and HSSD ¡V strengthens fire resistance and limits potential damage

-          CRAC system ¡V maintains constant temperatures and relative humidity to minimize redundancy control

-          Diesel Power Generator ¡V provide full power outage support for entire data centre operation with
limitless diesel tank back up located in ground floor of building.

-          UPS ¡V offers N+1 full load configuration

 
Standard 1 Rack Package

-          1 Rack of Industrial Standard Rack

-          One 100Mbps Internet Connectivity Port

-          Shared Access to SunnyVision Internet backbone
 (BGP4 Peering to 2Gbps to Local (HKIX) + 300Mbps to Oversea Carrier (Singtel, NTT, Reach, ChinaNet)

-          Free 32 IPs Addresses Allocation and Basic Configuration
(Continue reading)

woody | 13 Feb 15:31
Picon

Dedicated Server Rental Service --- TIA Tier 3+

For now, our TIA TIER 3+ IDC Dedicated Server Rental service is on a discount period!!

-	   Intel(R) Xeon(R) E3-1220 Processor (3.10GHz, 8M Cache, Turbo, 4C/4T, 80W)
-	   4GB RAM, 1x4GB, 1333MHz, DDR-3, Single Ranked UDIMMs
-	   500GB, 3.5", SATA II x 2 Enterprise Hard Disk
-	   Raid 1 Mirroring Protection
-                  Un-limit Data Transfer Bandwidth
-                  BGP4 Peering to 2Gbps to Local (HKIX) + 500Mbps to Oversea Carrier (Singtel, NTT, Reach, ChinaNet)

Please contact +852 6085 5864 or email to woody <at> dedicatedserver.com.hk for any enquiry. Thanks.

Best Regards,
Woody Ng

If you do not wish to further receive this event message, email "subscriber <at> dedicatedserver.com.hk" to
unsubscribe this message or revoe your email from the list.

otto | 18 Feb 07:39
Picon

Web Design Service

Dear Sir / Madam, 

Good morning, this is Otto from DS Hong Kong. 

We are a web design house and programming service provider. As 14 years experience, we are professional to
develop a website for your business. 

In the Chinese New Year Festival, we have the following offer for your corporate. Please check. 

Service	Package

Web Development and Programing Service
*********************************************************
1)	Website Design Service 			($13,000)

	Maximum 10 Web Pages Development                                                 
	(Site Map will be confirmed later)
	All the tailor-made webpage design is included:
-	Theme / Visual Concept Development;
-	Design Study and Analysis / Art Direction;
-	Original Artwork & Layout Design;
-	Steady Web page development;
-	HTML Development for Search Engine Applicable;

2)	Web Programing Service 			($15,000)

Content Management System (For 5 web pages)                                 
-	Standard CMS function for add / edit fields 
-	Max. 10 fields per each CMS section
-	CMS fields only for Text fields and photos upload fields
(Continue reading)


Gmane