spin_lock_irqsave(&smu->lock, flags); smu_fill_get_rtc_cmd(smu->cmd_buf); rc = smu_do_cmd(smu); if (rc == 0) smu_parse_get_rtc_reply(smu->cmd_buf, time); spin_unlock_irqrestore(&smu->lock, flags); 
rc = smu_queue_simple(&cmd, SMU_CMD_RTC_COMMAND, 1, NULL, NULL, SMU_CMD_RTC_GET_DATETIME); if (rc) return rc; smu_spinwait_simple(&cmd); 
int smu_get_rtc_time(struct rtc_time *time){	unsigned long flags;	int rc;	if (smu == NULL)		return -ENODEV;	memset(time, 0, sizeof(struct rtc_time));	spin_lock_irqsave(&smu->lock, flags);	smu_fill_get_rtc_cmd(smu->cmd_buf);	rc = smu_do_cmd(smu);	if (rc == 0)		smu_parse_get_rtc_reply(smu->cmd_buf, time);	spin_unlock_irqrestore(&smu->lock, flags);	return rc;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/0365ba7fb1fa94a41289d6a3d36b4d95960e56cc/smu.c/clean/drivers/macintosh/smu.c